|
|
|
@ -77,7 +77,9 @@ class ProductTileItem extends StatelessWidget {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
ProjectViewModel projectProvider = Provider.of(context);
|
|
|
|
ProjectViewModel projectProvider = Provider.of(context);
|
|
|
|
return Container(
|
|
|
|
return InkWell(
|
|
|
|
|
|
|
|
onTap: () => productOnClick(context),
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.all(7),
|
|
|
|
margin: EdgeInsets.all(7),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border.all(color: Colors.grey.shade300, width: 0.2),
|
|
|
|
border: Border.all(color: Colors.grey.shade300, width: 0.2),
|
|
|
|
@ -152,7 +154,8 @@ class ProductTileItem extends StatelessWidget {
|
|
|
|
: 8),
|
|
|
|
: 8),
|
|
|
|
bottomLeft: Radius.circular(8),
|
|
|
|
bottomLeft: Radius.circular(8),
|
|
|
|
bottomRight: Radius.circular(8),
|
|
|
|
bottomRight: Radius.circular(8),
|
|
|
|
topLeft: Radius.circular(item.rxMessage != null &&
|
|
|
|
topLeft: Radius.circular(
|
|
|
|
|
|
|
|
item.rxMessage != null &&
|
|
|
|
!projectProvider.isArabic
|
|
|
|
!projectProvider.isArabic
|
|
|
|
? 25
|
|
|
|
? 25
|
|
|
|
: 8),
|
|
|
|
: 8),
|
|
|
|
@ -160,7 +163,8 @@ class ProductTileItem extends StatelessWidget {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
margin: EdgeInsets.fromLTRB(0, 0, 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)
|
|
|
|
? Padding(
|
|
|
|
? Padding(
|
|
|
|
padding: EdgeInsets.all(12.0),
|
|
|
|
padding: EdgeInsets.all(12.0),
|
|
|
|
child: Image.network(
|
|
|
|
child: Image.network(
|
|
|
|
@ -258,8 +262,8 @@ class ProductTileItem extends StatelessWidget {
|
|
|
|
//mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
//mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
padding:
|
|
|
|
padding: const EdgeInsets.symmetric(
|
|
|
|
const EdgeInsets.symmetric(horizontal: 10, vertical: 2),
|
|
|
|
horizontal: 10, vertical: 2),
|
|
|
|
child: Texts(
|
|
|
|
child: Texts(
|
|
|
|
"SAR ${item.price}",
|
|
|
|
"SAR ${item.price}",
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
@ -318,6 +322,7 @@ class ProductTileItem extends StatelessWidget {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|