menu detail page

This commit is contained in:
Efril
2026-01-16 14:41:09 +07:00
parent 44d48d41d4
commit f4f775b9ed
9 changed files with 623 additions and 316 deletions
@@ -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]),
),
);
},
),
],