@ -10,6 +10,7 @@ import 'package:diplomaticquarterapp/uitl/app_shared_preferences.dart';
import ' package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart ' ;
import ' package:diplomaticquarterapp/uitl/gif_loader_dialog_utils.dart ' ;
import ' package:diplomaticquarterapp/uitl/translations_delegate_base.dart ' ;
import ' package:diplomaticquarterapp/uitl/translations_delegate_base.dart ' ;
import ' package:diplomaticquarterapp/widgets/buttons/secondary_button.dart ' ;
import ' package:diplomaticquarterapp/widgets/buttons/secondary_button.dart ' ;
import ' package:diplomaticquarterapp/widgets/data_display/text.dart ' ;
import ' package:diplomaticquarterapp/widgets/text/app_texts_widget.dart ' ;
import ' package:diplomaticquarterapp/widgets/text/app_texts_widget.dart ' ;
import ' package:flutter/material.dart ' ;
import ' package:flutter/material.dart ' ;
@ -79,10 +80,11 @@ class _FooterWidgetState extends State<FooterWidget> {
children: [
children: [
Padding (
Padding (
padding: const EdgeInsets . all ( 8.0 ) ,
padding: const EdgeInsets . all ( 8.0 ) ,
child: Text (
child: Texts (
TranslationBase . of ( context ) . quantity ,
TranslationBase . of ( context ) . productQuantity ,
style: TextStyle (
fontSize: 15 ,
fontSize: 15 , fontWeight: FontWeight . bold ) ,
fontWeight: FontWeight . bold ,
color: Color ( 0xFF575757 )
) ,
) ,
) ,
) ,
InkWell (
InkWell (
@ -144,7 +146,7 @@ class _FooterWidgetState extends State<FooterWidget> {
) ,
) ,
)
)
: Container (
: Container (
height: 2 0,
height: 1 0,
) ,
) ,
Container (
Container (
height: 58 ,
height: 58 ,
@ -164,23 +166,25 @@ class _FooterWidgetState extends State<FooterWidget> {
AppText (
AppText (
TranslationBase . of ( context ) . productQuantity ,
TranslationBase . of ( context ) . productQuantity ,
fontSize: 10 ,
fontSize: 10 ,
fontWeight: FontWeight . w600 ,
) ,
) ,
Row (
Row (
children: [
children: [
AppText (
AppText (
widget . quantity . toString ( ) ,
widget . quantity . toString ( ) ,
fontSize: 16 ,
fontSize: 16 ,
fontWeight: FontWeight . bold ,
fontWeight: FontWeight . bold ,
) ,
) ,
SizedBox (
SizedBox (
width: 20 ,
width: 20 ,
) ,
) ,
Icon ( Icons . keyboard_arrow_down , color: Color ( 0xFF2E303A ) , size: 25 , )
Icon (
Icons . keyboard_arrow_down ,
color: Color ( 0xFF2E303A ) ,
size: 25 ,
)
] ,
] ,
) ,
) ,
] ,
] ,
) ,
) ,
SizedBox (
SizedBox (
@ -216,10 +220,11 @@ class _FooterWidgetState extends State<FooterWidget> {
Container (
Container (
width: MediaQuery . of ( context ) . size . width * 0.35 ,
width: MediaQuery . of ( context ) . size . width * 0.35 ,
child: SecondaryButton (
child: SecondaryButton (
label: TranslationBase . of ( context ) . addToCart .toUpperCase ( ) ,
label: TranslationBase . of ( context ) . addToCart ,
disabled: ( ! widget . isAvailable & & widget . quantity > 0 ) | |
disabled: ( ! widget . isAvailable & & widget . quantity > 0 ) | |
widget . quantity > widget . quantityLimit | |
widget . quantity > widget . quantityLimit | |
widget . item . isRx ,
widget . item . isRx ,
fontSize: 16 ,
onTap: ( ) async {
onTap: ( ) async {
if ( ! authenticatedUserObject . isLogin ) {
if ( ! authenticatedUserObject . isLogin ) {
login ( ) ;
login ( ) ;
@ -232,7 +237,7 @@ class _FooterWidgetState extends State<FooterWidget> {
fontWeight: FontWeight . w600 ,
fontWeight: FontWeight . w600 ,
borderColor: Color ( 0xFF4CAF50 ) . withOpacity ( 0.7 ) ,
borderColor: Color ( 0xFF4CAF50 ) . withOpacity ( 0.7 ) ,
borderRadius: 6 ,
borderRadius: 6 ,
color: Color ( 0xFF5 AB145) . withOpacity ( 0.7 ) ,
color: Color ( 0xFF5 35353 ) ,
) ,
) ,
) ,
) ,
SizedBox (
SizedBox (
@ -241,7 +246,8 @@ class _FooterWidgetState extends State<FooterWidget> {
Container (
Container (
width: MediaQuery . of ( context ) . size . width * 0.35 ,
width: MediaQuery . of ( context ) . size . width * 0.35 ,
child: SecondaryButton (
child: SecondaryButton (
label: TranslationBase . of ( context ) . buyNow . toUpperCase ( ) ,
label: TranslationBase . of ( context ) . buyNow ,
fontSize: 16 ,
disabled: ( ! widget . isAvailable & & widget . quantity > 0 ) | |
disabled: ( ! widget . isAvailable & & widget . quantity > 0 ) | |
( widget . quantity > widget . quantityLimit ) | |
( widget . quantity > widget . quantityLimit ) | |
widget . item . isRx ,
widget . item . isRx ,
@ -263,7 +269,7 @@ class _FooterWidgetState extends State<FooterWidget> {
widget . quantity > widget . quantityLimit | |
widget . quantity > widget . quantityLimit | |
widget . item . isRx
widget . item . isRx
? Color ( 0xFF535353 ) . withOpacity ( 0.7 )
? Color ( 0xFF535353 ) . withOpacity ( 0.7 )
: Color s. grey [ 800 ] ,
: Color ( 0xFF5AB145 ) ,
) ,
) ,
) ,
) ,
] ,
] ,