|
|
|
|
@ -70,7 +70,7 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
|
style: TextStyle(color: Colors.white,
|
|
|
|
|
// regular: true,
|
|
|
|
|
fontSize: 17,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
fontWeight: FontWeight.w600, letterSpacing:-0.68
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
@ -79,14 +79,14 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
|
)
|
|
|
|
|
: Container(),
|
|
|
|
|
FractionallySizedBox(
|
|
|
|
|
widthFactor: 0.95,
|
|
|
|
|
widthFactor: 0.93,
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: [
|
|
|
|
|
// Texts(widget.item.price.toString() + " " + TranslationBase.of(context).sar, fontWeight: FontWeight.bold, fontSize: 20),
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(top: 10.0, right: 10.0),
|
|
|
|
|
padding: EdgeInsets.only(left: 11.0, right: 11.0, top: 0, bottom: 0),
|
|
|
|
|
padding: EdgeInsets.only(left: 11, right: 11,),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
border: Border.all(
|
|
|
|
|
color: getStatusBackgroundColor(),
|
|
|
|
|
@ -97,7 +97,7 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
|
borderRadius: BorderRadius.circular(30.0)),
|
|
|
|
|
child: Text(
|
|
|
|
|
widget.stockAvailability,
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.w600, fontSize: 11, color: Color(0xffFFFFFF),),
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.w600, fontSize: 11, color: Color(0xffFFFFFF),letterSpacing:-0.44),
|
|
|
|
|
//color: widget.isStockAvailable ? Colors.white : Colors.red,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -177,14 +177,14 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(left: 8,right: 8, top: 1, bottom: 15),
|
|
|
|
|
padding: const EdgeInsets.only(left: 8,right: 8, top: 1, bottom: 12),
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.only(left: 5, right: 5),
|
|
|
|
|
margin: EdgeInsets.only(left: 10, right: 10),
|
|
|
|
|
child: Align(
|
|
|
|
|
alignment: projectViewModel.isArabic ? Alignment.topRight : Alignment.topLeft,
|
|
|
|
|
child: Text(
|
|
|
|
|
projectViewModel.isArabic ? widget.item.namen : widget.item.name,
|
|
|
|
|
style: TextStyle( fontWeight: FontWeight.w600, fontSize: 16),
|
|
|
|
|
style: TextStyle( fontWeight: FontWeight.w600, fontSize: 16, letterSpacing:-0.96),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
@ -193,12 +193,12 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.only(left: 8,right: 8),
|
|
|
|
|
child: Container(
|
|
|
|
|
margin: EdgeInsets.only(left: 5, right: 5),
|
|
|
|
|
margin: EdgeInsets.only(left: 10, right: 10),
|
|
|
|
|
child: Align(
|
|
|
|
|
alignment: projectViewModel.isArabic ? Alignment.topRight : Alignment.topLeft,
|
|
|
|
|
child: Text( TranslationBase.of(context).sar+ " " +
|
|
|
|
|
widget.item.price.toString(),
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 19),),
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 19, letterSpacing:-0.76),),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
@ -208,6 +208,7 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
margin: EdgeInsets.only(left: 8, right: 8),
|
|
|
|
|
child: Align(
|
|
|
|
|
alignment: Alignment.bottomLeft,
|
|
|
|
|
child: Row(
|
|
|
|
|
@ -223,16 +224,16 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
|
emptyIcon: Icons.star_border,
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 10,
|
|
|
|
|
width: 5,
|
|
|
|
|
),
|
|
|
|
|
// Texts(
|
|
|
|
|
// "${widget.item.approvedRatingSum}",
|
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
|
// fontSize: 12,
|
|
|
|
|
// ),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 30,
|
|
|
|
|
),
|
|
|
|
|
// SizedBox(
|
|
|
|
|
// width: 30,
|
|
|
|
|
// ),
|
|
|
|
|
Text(
|
|
|
|
|
"(${widget.item.approvedTotalReviews}${TranslationBase.of(context).review})",
|
|
|
|
|
style: TextStyle(fontWeight: FontWeight.w600, fontSize: 12),
|
|
|
|
|
@ -257,7 +258,7 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 30,
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|