@ -3,7 +3,7 @@ import 'package:diplomaticquarterapp/core/service/AuthenticatedUserObject.dart';
import ' package:diplomaticquarterapp/core/viewModels/pharmacyModule/product_detail_view_model.dart ' ;
import ' package:diplomaticquarterapp/core/viewModels/pharmacyModule/product_detail_view_model.dart ' ;
import ' package:diplomaticquarterapp/core/viewModels/pharmacy_categorise_view_model.dart ' ;
import ' package:diplomaticquarterapp/core/viewModels/pharmacy_categorise_view_model.dart ' ;
import ' package:diplomaticquarterapp/locator.dart ' ;
import ' package:diplomaticquarterapp/locator.dart ' ;
import ' package:diplomaticquarterapp/pages/pharmacies/screens/cart- order-page.dart' ;
import ' package:diplomaticquarterapp/pages/pharmacies/screens/cart- page/cart- order-page.dart' ;
import ' package:diplomaticquarterapp/uitl/app_toast.dart ' ;
import ' package:diplomaticquarterapp/uitl/app_toast.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 ' ;
@ -198,7 +198,8 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
) ,
) ,
margin: EdgeInsets . symmetric (
margin: EdgeInsets . symmetric (
horizontal: 8 ,
horizontal: 8 ,
vertical: 4 ,
vertical: 1 ,
/ / vertical: 2 ,
) ,
) ,
child: Container (
child: Container (
decoration: BoxDecoration (
decoration: BoxDecoration (
@ -210,11 +211,17 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
color: Colors . white ,
color: Colors . white ,
) ,
) ,
padding: EdgeInsets . symmetric (
padding: EdgeInsets . symmetric (
horizontal: 0 ) ,
horizontal: 4 ,
width: MediaQuery . of ( context )
) ,
. size
width: MediaQuery . of ( context ) . size . width / 3 ,
. width /
/ / width: MediaQuery . of ( context )
3 ,
/ / . size
/ / . width /
/ / 1 ,
/ / height: MediaQuery . of ( context )
/ / . size
/ / . width /
/ / 1 ,
child: Column (
child: Column (
crossAxisAlignment:
crossAxisAlignment:
CrossAxisAlignment
CrossAxisAlignment
@ -224,7 +231,7 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
children: [
children: [
Container (
Container (
margin: EdgeInsets
margin: EdgeInsets
. fromLTRB ( 0 , 1 6 ,
. fromLTRB ( 0 , 1 ,
0 , 0 ) ,
0 , 0 ) ,
alignment: Alignment
alignment: Alignment
. center ,
. center ,
@ -242,10 +249,68 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
. thumb
. thumb
: ' https://upload.wikimedia.org/wikipedia/commons/thumb/6/6c/No_image_3x4.svg/1200px-No_image_3x4.svg.png ' ,
: ' https://upload.wikimedia.org/wikipedia/commons/thumb/6/6c/No_image_3x4.svg/1200px-No_image_3x4.svg.png ' ,
fit: BoxFit . cover ,
fit: BoxFit . cover ,
height: 80 ,
height: 70 ,
) ,
) ,
) ,
/ / Container (
/ / width: model
/ / . finalProducts [
/ / index ]
/ / . rxMessage ! =
/ / null
/ / ? MediaQuery . of (
/ / context )
/ / . size
/ / . width /
/ / 2.8
/ / : 0 ,
/ / padding:
/ / EdgeInsets . all (
/ / 4 ) ,
/ / decoration:
/ / BoxDecoration (
/ / color: Color (
/ / 0xffb23838 ) ,
/ / borderRadius: BorderRadius . only (
/ / topLeft: Radius
/ / . circular (
/ / 6 ) ) ,
/ / ) ,
/ / child: model
/ / . finalProducts [
/ / index ]
/ / . rxMessage ! =
/ / null
/ / ? Texts (
/ / languageID = =
/ / ' ar '
/ / ? model
/ / . finalProducts [
/ / index ]
/ / . rxMessagen
/ / : model
/ / . finalProducts [ index ]
/ / . rxMessage ,
/ / color: Colors
/ / . white ,
/ / regular:
/ / true ,
/ / fontSize:
/ / 10 ,
/ / fontWeight:
/ / FontWeight
/ / . w600 ,
/ / )
/ / : Texts ( " " ) ,
/ / ) ,
] ,
) ,
) ,
Container (
Container (
margin: EdgeInsets
. symmetric (
horizontal: 0 ,
vertical: 2 ,
) ,
width: model
width: model
. finalProducts [
. finalProducts [
index ]
index ]
@ -255,19 +320,18 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
context )
context )
. size
. size
. width /
. width /
2. 8
2. 0
: 0 ,
: 0 ,
padding:
padding:
EdgeInsets . all (
EdgeInsets . fromLTRB ( 8 , 4 , 8 , 4 ) ,
4 ) ,
decoration:
decoration:
BoxDecoration (
BoxDecoration (
color: Color (
color: Color (
0xffb23838 ) ,
0xffb23838 ) ,
borderRadius: BorderRadius . only (
/ / borderRadius: BorderRadius . only (
topLeft: Radius
/ / topLeft: Radius
. circular (
/ / . circular (
6 ) ) ,
/ / 6 ) ) ,
) ,
) ,
child: model
child: model
. finalProducts [
. finalProducts [
@ -296,8 +360,6 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
)
)
: Texts ( " " ) ,
: Texts ( " " ) ,
) ,
) ,
] ,
) ,
Container (
Container (
margin: EdgeInsets
margin: EdgeInsets
. symmetric (
. symmetric (
@ -439,6 +501,8 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
( BuildContext context , int index ) {
( BuildContext context , int index ) {
return InkWell (
return InkWell (
child: Card (
child: Card (
child: Padding (
padding: const EdgeInsets . all ( 4.0 ) ,
child: Row (
child: Row (
children: [
children: [
Stack (
Stack (
@ -452,16 +516,16 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
padding:
padding:
EdgeInsets
EdgeInsets
. only (
. only (
left: 9 .0,
left: 2 .0,
top: 8 .0,
top: 2 .0,
right: 10 .0,
right: 2 .0,
) ,
) ,
) ,
) ,
) ,
) ,
Container (
Container (
margin: EdgeInsets
/ / margin: EdgeInsets
. fromLTRB (
/ / . fromLTRB (
0, 0 , 0 , 0 ) ,
/ / 8, 0 , 8 , 0 ) ,
alignment: Alignment
alignment: Alignment
. center ,
. center ,
child:
child:
@ -479,14 +543,86 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
: ' https://upload.wikimedia.org/wikipedia/commons/thumb/6/6c/No_image_3x4.svg/1200px-No_image_3x4.svg.png ' ,
: ' https://upload.wikimedia.org/wikipedia/commons/thumb/6/6c/No_image_3x4.svg/1200px-No_image_3x4.svg.png ' ,
fit: BoxFit
fit: BoxFit
. contain ,
. contain ,
height: 8 0,
height: 7 0,
) ,
) ,
) ,
) ,
] ,
] ,
) ,
) ,
Column (
/ / Column (
/ / children: [
/ / Container (
/ / width: model
/ / . finalProducts [
/ / index ]
/ / . rxMessage ! =
/ / null
/ / ? MediaQuery . of (
/ / context )
/ / . size
/ / . width /
/ / 5.3
/ / : 0 ,
/ / padding:
/ / EdgeInsets . all (
/ / 4 ) ,
/ / decoration:
/ / BoxDecoration (
/ / color: Color (
/ / 0xffb23838 ) ,
/ / borderRadius: BorderRadius . only (
/ / topLeft: Radius
/ / . circular (
/ / 6 ) ) ,
/ / ) ,
/ / child: Texts (
/ / model
/ / . finalProducts [
/ / index ]
/ / . rxMessage ! =
/ / null
/ / ? model
/ / . finalProducts [
/ / index ]
/ / . rxMessage
/ / : " " ,
/ / color:
/ / Colors . white ,
/ / regular: true ,
/ / fontSize: 10 ,
/ / fontWeight:
/ / FontWeight
/ / . w600 ,
/ / ) ,
/ / ) ,
/ / ] ,
/ / ) ,
] ,
) ,
Container (
height: 130.0 ,
margin:
EdgeInsets . symmetric (
horizontal: 0 ,
vertical: 6 ,
) ,
child: Column (
mainAxisAlignment:
MainAxisAlignment
. spaceAround ,
crossAxisAlignment:
CrossAxisAlignment
. start ,
children: [
children: [
Container (
Container (
margin: EdgeInsets
. symmetric (
horizontal: 4 ,
vertical: 0 ,
) ,
width: model
width: model
. finalProducts [
. finalProducts [
index ]
index ]
@ -496,7 +632,7 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
context )
context )
. size
. size
. width /
. width /
5.3
2.0
: 0 ,
: 0 ,
padding:
padding:
EdgeInsets . all (
EdgeInsets . all (
@ -505,50 +641,38 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
BoxDecoration (
BoxDecoration (
color: Color (
color: Color (
0xffb23838 ) ,
0xffb23838 ) ,
borderRadius: BorderRadius . only (
/ / borderRadius: BorderRadius . only (
topLeft: Radius
/ / topLeft: Radius
. circular (
/ / . circular (
6 ) ) ,
/ / 6 ) ) ,
) ,
) ,
child: Texts (
child: model
model
. finalProducts [
. finalProducts [
index ]
index ]
. rxMessage ! =
. rxMessage ! =
null
null
? Texts (
languageID = =
' ar '
? model
? model
. finalProducts [
. finalProducts [
index ]
index ]
. rxMessage
. rxMessagen
: " " ,
: model
color:
. finalProducts [ index ]
Colors . white ,
. rxMessage ,
regular: true ,
color: Colors
fontSize: 10 ,
. white ,
regular:
true ,
fontSize:
10 ,
fontWeight:
fontWeight:
FontWeight
FontWeight
. w600 ,
. w600 ,
)
: Texts ( " " ) ,
) ,
) ,
) ,
] ,
) ,
] ,
) ,
Container (
height: 100.0 ,
margin:
EdgeInsets . symmetric (
horizontal: 6 ,
vertical: 0 ,
) ,
child: Column (
mainAxisAlignment:
MainAxisAlignment
. spaceAround ,
crossAxisAlignment:
CrossAxisAlignment
. start ,
children: [
SizedBox (
SizedBox (
height: 4.0 ,
height: 4.0 ,
) ,
) ,
@ -640,6 +764,7 @@ class _FinalProductsPageState extends State<FinalProductsPage> {
] ,
] ,
) ,
) ,
) ,
) ,
) ,
onTap: ( ) = > {
onTap: ( ) = > {
Navigator . push (
Navigator . push (
context ,
context ,