|
|
|
|
@ -20,7 +20,12 @@ class ProductAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
final Function addToWishlistFunction;
|
|
|
|
|
final int quantity;
|
|
|
|
|
|
|
|
|
|
ProductAppBar({Key key, this.product, this.model, this.addToWishlistFunction, this.quantity})
|
|
|
|
|
ProductAppBar(
|
|
|
|
|
{Key key,
|
|
|
|
|
this.product,
|
|
|
|
|
this.model,
|
|
|
|
|
this.addToWishlistFunction,
|
|
|
|
|
this.quantity})
|
|
|
|
|
: super(key: key);
|
|
|
|
|
|
|
|
|
|
AuthenticatedUserObject authenticatedUserObject =
|
|
|
|
|
@ -71,7 +76,8 @@ class ProductAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
icon: FontAwesomeIcons.ellipsisV,
|
|
|
|
|
color: Colors.grey,
|
|
|
|
|
onPress: () {
|
|
|
|
|
settingModalBottomSheet(context);
|
|
|
|
|
settingModalBottomSheet(
|
|
|
|
|
context);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
@ -84,7 +90,6 @@ class ProductAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
@override
|
|
|
|
|
Size get preferredSize => Size(double.maxFinite, 50);
|
|
|
|
|
|
|
|
|
|
@ -121,8 +126,9 @@ class ProductAppBar extends StatelessWidget with PreferredSizeWidget {
|
|
|
|
|
title: Text(
|
|
|
|
|
TranslationBase.of(context).addToWishlist,
|
|
|
|
|
),
|
|
|
|
|
onTap: () =>
|
|
|
|
|
{addToWishlistFunction(itemID: itemID, model: model)},
|
|
|
|
|
onTap: () {
|
|
|
|
|
addToWishlistFunction(itemID: itemID, model: model);
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
ListTile(
|
|
|
|
|
leading: Icon(Icons.compare),
|
|
|
|
|
|