45 lines
1.2 KiB
Dart
45 lines
1.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../../../../common/constant/app_constant.dart';
|
|
import '../../../../common/theme/theme.dart';
|
|
|
|
class CheckoutMerchant extends StatelessWidget {
|
|
const CheckoutMerchant({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
children: [
|
|
Container(
|
|
width: 60,
|
|
height: 60,
|
|
decoration: BoxDecoration(
|
|
color: AppColor.surface,
|
|
borderRadius: BorderRadius.circular(12),
|
|
),
|
|
child: Center(
|
|
child: ClipRRect(
|
|
borderRadius: BorderRadius.circular(12),
|
|
child: Image.asset(merchant.imageUrl),
|
|
),
|
|
),
|
|
),
|
|
SizedBox(width: 12),
|
|
Expanded(
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
merchant.name,
|
|
style: AppStyle.h6.copyWith(fontWeight: FontWeight.bold),
|
|
),
|
|
Text(merchant.category, style: AppStyle.md.copyWith()),
|
|
Row(children: [SizedBox(width: 12)]),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|