|
|
|
|
@ -189,13 +189,14 @@ class _FooterWidgetState extends State<FooterWidget> {
|
|
|
|
|
disabled: !widget.isAvailable && widget.price > 0 ||
|
|
|
|
|
widget.price > widget.quantityLimit ||
|
|
|
|
|
widget.item.rxMessage != null,
|
|
|
|
|
onTap: () {
|
|
|
|
|
disableColor: Colors.green[400],
|
|
|
|
|
onTap: () async {
|
|
|
|
|
if (!authenticatedUserObject.isLogin) {
|
|
|
|
|
Navigator.of(context).pushNamed(
|
|
|
|
|
WELCOME_LOGIN,
|
|
|
|
|
);
|
|
|
|
|
} else
|
|
|
|
|
widget.addToCartFunction(
|
|
|
|
|
await widget.addToCartFunction(
|
|
|
|
|
widget.price, widget.item.id, context);
|
|
|
|
|
},
|
|
|
|
|
borderRadius: 5,
|
|
|
|
|
@ -212,8 +213,8 @@ class _FooterWidgetState extends State<FooterWidget> {
|
|
|
|
|
disabled: !widget.isAvailable && widget.price > 0 ||
|
|
|
|
|
widget.price > widget.quantityLimit ||
|
|
|
|
|
widget.item.rxMessage != null,
|
|
|
|
|
onTap: () {
|
|
|
|
|
widget.addToCartFunction(
|
|
|
|
|
onTap: () async {
|
|
|
|
|
await widget.addToCartFunction(
|
|
|
|
|
widget.price, widget.item.id, context);
|
|
|
|
|
Navigator.push(
|
|
|
|
|
context,
|
|
|
|
|
@ -221,6 +222,7 @@ class _FooterWidgetState extends State<FooterWidget> {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
borderRadius: 5,
|
|
|
|
|
disableColor: Colors.grey[700],
|
|
|
|
|
color: !widget.isAvailable && widget.price > 0 ||
|
|
|
|
|
widget.price > widget.quantityLimit ||
|
|
|
|
|
widget.item.rxMessage != null
|
|
|
|
|
|