fix coloring issue

merge-update-with-lab-changes
Elham Rababh 4 years ago
parent 7de8c2588f
commit 9254004125

@ -98,6 +98,7 @@ class __ProductDetailPageState extends State<ProductDetailPage>{
isShowDecPage: false,
customAppBar: ProductAppBar(
product: widget.product,
quantity: quantity,
model: model,
addToWishlistFunction: (item) {
addToWishlistFunction(itemID:item,model:model);

@ -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),

Loading…
Cancel
Save