home page
This commit is contained in:
@@ -98,7 +98,7 @@ class _MycartState extends State<Mycart> {
|
||||
if (provider.isBestdealingloading) {
|
||||
return Center(child: CircularProgressIndicator());
|
||||
} else if (provider.bestdeal.isEmpty) {
|
||||
return Center(child: Text('No products available'));
|
||||
return Center(child: Text(''));
|
||||
} else {
|
||||
return SizedBox(
|
||||
height: MediaQuery.of(context).size.height * 0.28,
|
||||
@@ -112,16 +112,14 @@ class _MycartState extends State<Mycart> {
|
||||
|
||||
return InkWell(
|
||||
onTap: () {
|
||||
context.push(MyRoutes.PRODUCTDETAILS,
|
||||
|
||||
|
||||
extra: {
|
||||
"id":bestdealproduct.id,
|
||||
"quantity": 0,
|
||||
"price": "0",
|
||||
},
|
||||
|
||||
);
|
||||
context.push(
|
||||
MyRoutes.PRODUCTDETAILS,
|
||||
extra: {
|
||||
"id": bestdealproduct.id,
|
||||
"quantity": 0,
|
||||
"price": "0",
|
||||
},
|
||||
);
|
||||
},
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(right: 5, bottom: 5, top: 5),
|
||||
@@ -434,8 +432,8 @@ class _MycartState extends State<Mycart> {
|
||||
return DataNotFound(
|
||||
imagePath: 'assets/images/cartempty.jpg',
|
||||
message: "",
|
||||
width: 250.w,
|
||||
height: 200.h,
|
||||
width: 100.w,
|
||||
height: 100.h,
|
||||
);
|
||||
} else {
|
||||
return ListView.separated(
|
||||
@@ -450,17 +448,16 @@ class _MycartState extends State<Mycart> {
|
||||
var items = provider.allitem.items![index];
|
||||
|
||||
return InkWell(
|
||||
onTap: ()
|
||||
{
|
||||
onTap: () {
|
||||
context.push(
|
||||
MyRoutes.PRODUCTDETAILS,
|
||||
extra: {
|
||||
"id": items.product!.id,
|
||||
"quantity": items.quantity,
|
||||
"price": items.product!.discountPrice,
|
||||
"price": items.product!.discountPrice,
|
||||
},
|
||||
);
|
||||
},
|
||||
},
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 10.w),
|
||||
child: Row(
|
||||
|
||||
Reference in New Issue
Block a user