feat: merchat detail page
This commit is contained in:
@@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../common/theme/theme.dart';
|
||||
import '../../components/field/field.dart';
|
||||
import '../../router/app_router.gr.dart';
|
||||
import 'widgets/empty_merchant_card.dart';
|
||||
import 'widgets/merchant_card.dart';
|
||||
|
||||
@@ -90,12 +91,7 @@ class _MerchantPageState extends State<MerchantPage> {
|
||||
return MerchantCard(
|
||||
merchant: merchant,
|
||||
onTap: () {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text('Selected ${merchant.name}'),
|
||||
backgroundColor: AppColor.primary,
|
||||
),
|
||||
);
|
||||
context.router.push(MerchantDetailRoute(merchant: merchant));
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user