@ -88,7 +88,7 @@ class ProductTileItem extends StatelessWidget {
Stack (
Stack (
children: [
children: [
Container (
Container (
margin: EdgeInsets . fromLTRB ( 0 , 16 , 0 , 0 ) ,
margin: EdgeInsets . fromLTRB ( 0 , 0 , 0 , 0 ) ,
alignment: Alignment . center ,
alignment: Alignment . center ,
child: ( item . images ! = null & & item . images . length > 0 )
child: ( item . images ! = null & & item . images . length > 0 )
? Image . network (
? Image . network (
@ -102,15 +102,40 @@ class ProductTileItem extends StatelessWidget {
height: itemHeight / 2 ,
height: itemHeight / 2 ,
) ,
) ,
) ,
) ,
Container (
/ / Container (
width: item . rxMessage ! = null
/ / width: item . rxMessage ! = null
? MediaQuery . of ( context ) . size . width / 5
/ / ? MediaQuery . of ( context ) . size . width / 5
: 0 ,
/ / : 0 ,
padding: EdgeInsets . all ( 4 ) ,
/ / padding: EdgeInsets . all ( 4 ) ,
/ / decoration: BoxDecoration (
/ / color: Color ( 0xffb23838 ) ,
/ / borderRadius:
/ / BorderRadius . only ( topLeft: Radius . circular ( 6 ) ) ,
/ / ) ,
/ / child: item . rxMessage ! = null
/ / ? Texts (
/ / projectProvider . isArabic
/ / ? item . rxMessagen
/ / : item . rxMessage ,
/ / color: Colors . white ,
/ / regular: true ,
/ / fontSize: 10 ,
/ / fontWeight: FontWeight . w400 ,
/ / )
/ / : Texts ( " " ) ,
/ / )
] ,
) ,
Padding (
padding: EdgeInsets . fromLTRB ( 4 , 2 , 4 , 2 ) ,
child: Container (
/ / width: item . rxMessage ! = null
/ / ? MediaQuery . of ( context ) . size . width / 5
/ / : 0 ,
/ / padding: EdgeInsets . fromLTRB ( 6 , 4 , 6 , 4 ) ,
decoration: BoxDecoration (
decoration: BoxDecoration (
color: Color ( 0xffb23838 ) ,
color: Color ( 0xffb23838 ) ,
borderRadius:
BorderRadius . only ( topLeft: Radius . circular ( 6 ) ) ,
) ,
) ,
child: item . rxMessage ! = null
child: item . rxMessage ! = null
? Texts (
? Texts (
@ -123,12 +148,11 @@ class ProductTileItem extends StatelessWidget {
fontWeight: FontWeight . w400 ,
fontWeight: FontWeight . w400 ,
)
)
: Texts ( " " ) ,
: Texts ( " " ) ,
)
] ,
) ,
) ,
SizedBox ( height: 8 , ) ,
) ,
/ / SizedBox ( height: 4 , ) ,
Padding (
Padding (
padding: const EdgeInsets . symmetric ( horizontal: 6 .0) ,
padding: const EdgeInsets . symmetric ( horizontal: 4 .0) ,
child: Texts (
child: Texts (
projectProvider . isArabic ? item . namen : item . name ,
projectProvider . isArabic ? item . namen : item . name ,
regular: true ,
regular: true ,
@ -139,7 +163,7 @@ class ProductTileItem extends StatelessWidget {
Expanded (
Expanded (
child: Container (
child: Container (
margin: EdgeInsets . symmetric (
margin: EdgeInsets . symmetric (
horizontal: 6 ,
horizontal: 4 ,
vertical: 0 ,
vertical: 0 ,
) ,
) ,
child: Column (
child: Column (
@ -147,7 +171,7 @@ class ProductTileItem extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment . end ,
mainAxisAlignment: MainAxisAlignment . end ,
children: [
children: [
Padding (
Padding (
padding: const EdgeInsets . only ( top: 4, bottom: 4 ) ,
padding: const EdgeInsets . only ( top: 2, bottom: 2 ) ,
child: Texts (
child: Texts (
" SAR ${ item . price } " ,
" SAR ${ item . price } " ,
fontWeight: FontWeight . w600 ,
fontWeight: FontWeight . w600 ,