Add product detail to new arrival

This commit is contained in:
Moe Poi ~ 2022-05-15 22:08:20 +07:00
parent d4a50548e1
commit 69badc11c2

View file

@ -4,6 +4,7 @@ import '../utils/utils.dart';
import 'product_card.dart'; import 'product_card.dart';
import 'section_title.dart'; import 'section_title.dart';
import 'package:nekoya_flutter/api/api.dart'; import 'package:nekoya_flutter/api/api.dart';
import 'package:nekoya_flutter/components/product_detail.dart';
class NewArrivalProducts extends StatelessWidget { class NewArrivalProducts extends StatelessWidget {
const NewArrivalProducts({ const NewArrivalProducts({
@ -42,7 +43,14 @@ class NewArrivalProducts extends StatelessWidget {
imageUrl: "https://nekoya.moe.team/img/${data[index]['IMAGE']}", imageUrl: "https://nekoya.moe.team/img/${data[index]['IMAGE']}",
price: 99, price: 99,
bgColor: const Color(0xFFFEFBF9), bgColor: const Color(0xFFFEFBF9),
press: () {}, press: () {
showModalBottomSheet(
isScrollControlled: true,
backgroundColor: Colors.transparent,
context: context,
builder: (context) => productDetail(context, data[index]['ID']),
);
},
), ),
), ),
), ),