|
|
|
|
@ -7,6 +7,7 @@ import 'package:diplomaticquarterapp/widgets/transitions/fade_page.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
|
|
|
|
import 'package:rating_bar/rating_bar.dart';
|
|
|
|
|
import 'package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart';
|
|
|
|
|
|
|
|
|
|
class productTile extends StatelessWidget {
|
|
|
|
|
final String productName;
|
|
|
|
|
@ -135,8 +136,10 @@ class productTile extends StatelessWidget {
|
|
|
|
|
children: [
|
|
|
|
|
IconButton(
|
|
|
|
|
icon: Icon(FontAwesomeIcons.trashAlt, size: 15),
|
|
|
|
|
onPressed: () {
|
|
|
|
|
deleteFromWishlistFunction(productID);
|
|
|
|
|
onPressed: (){
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
deleteFromWishlistFunction(productID);
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
@ -145,11 +148,14 @@ class productTile extends StatelessWidget {
|
|
|
|
|
IconButton(
|
|
|
|
|
icon: Icon(FontAwesomeIcons.shoppingCart, size: 15),
|
|
|
|
|
onPressed: () async {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
await addToCartFunction(1, productID);
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
FadePage(page: CartOrderPage()),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
|