menu detail page
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import 'package:auto_route/auto_route.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../../common/theme/theme.dart';
|
||||
import '../../../../sample/product_sample_data.dart';
|
||||
import '../../../components/card/product_card.dart';
|
||||
import '../../../components/card/product_empty_card.dart';
|
||||
import '../../../router/app_router.gr.dart';
|
||||
|
||||
class MenuProductSection extends StatelessWidget {
|
||||
final ProductCategory category;
|
||||
@@ -60,7 +62,12 @@ class MenuProductSection extends StatelessWidget {
|
||||
),
|
||||
itemCount: categoryProducts.length,
|
||||
itemBuilder: (context, index) {
|
||||
return ProductCard(product: categoryProducts[index]);
|
||||
return ProductCard(
|
||||
product: categoryProducts[index],
|
||||
onTap: () => context.router.push(
|
||||
MenuDetailRoute(product: categoryProducts[index]),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user