Add product detail to new arrival
This commit is contained in:
parent
d4a50548e1
commit
69badc11c2
1 changed files with 9 additions and 1 deletions
|
@ -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']),
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue