|
|
|
@ -68,8 +68,8 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
widget.item.stockAvailability == 'Out of stock' &&
|
|
|
|
widget.item.stockAvailability == 'Out of stock' &&
|
|
|
|
widget.customerId != null
|
|
|
|
widget.customerId != null
|
|
|
|
? InkWell(
|
|
|
|
? InkWell(
|
|
|
|
onTap: () =>
|
|
|
|
onTap: () => widget.notifyMeWhenAvailable(
|
|
|
|
widget.notifyMeWhenAvailable(context, widget.item.id),
|
|
|
|
context, widget.item.id),
|
|
|
|
child: Row(children: [
|
|
|
|
child: Row(children: [
|
|
|
|
Texts(
|
|
|
|
Texts(
|
|
|
|
TranslationBase.of(context).notifyMe,
|
|
|
|
TranslationBase.of(context).notifyMe,
|
|
|
|
@ -88,7 +88,9 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
icon: !widget.isInWishList
|
|
|
|
icon: !widget.isInWishList
|
|
|
|
? Icons.favorite_border
|
|
|
|
? Icons.favorite_border
|
|
|
|
: Icons.favorite,
|
|
|
|
: Icons.favorite,
|
|
|
|
color: !widget.isInWishList ? Colors.white : Colors.red,
|
|
|
|
color: !widget.isInWishList
|
|
|
|
|
|
|
|
? Colors.white
|
|
|
|
|
|
|
|
: Colors.red[800],
|
|
|
|
onPress: () async {
|
|
|
|
onPress: () async {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (widget.customerId != null) {
|
|
|
|
if (widget.customerId != null) {
|
|
|
|
@ -163,29 +165,32 @@ class _ProductNameAndPriceState extends State<ProductNameAndPrice> {
|
|
|
|
"(${widget.item.approvedTotalReviews}${TranslationBase.of(context).review})",
|
|
|
|
"(${widget.item.approvedTotalReviews}${TranslationBase.of(context).review})",
|
|
|
|
fontSize: 12,
|
|
|
|
fontSize: 12,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
SizedBox(
|
|
|
|
),
|
|
|
|
width: 70,
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
if (widget.item.rxMessage != null)
|
|
|
|
flex: 1,
|
|
|
|
Row(
|
|
|
|
child: Container(
|
|
|
|
children: [
|
|
|
|
child: widget.item.rxMessage != null
|
|
|
|
Text(
|
|
|
|
? Text(
|
|
|
|
|
|
|
|
projectViewModel.isArabic
|
|
|
|
projectViewModel.isArabic
|
|
|
|
? widget.item.rxMessagen.toString()
|
|
|
|
? widget.item.rxMessagen.toString()
|
|
|
|
: widget.item.rxMessage.toString(),
|
|
|
|
: widget.item.rxMessage.toString(),
|
|
|
|
style: TextStyle(color: Colors.red, fontSize: 10),
|
|
|
|
style: TextStyle(color: Colors.red, fontSize: 10),
|
|
|
|
)
|
|
|
|
|
|
|
|
: Container()),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
widget.item.rxMessage != null
|
|
|
|
SizedBox(
|
|
|
|
? Icon(
|
|
|
|
width: 5,
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
Icon(
|
|
|
|
FontAwesomeIcons.questionCircle,
|
|
|
|
FontAwesomeIcons.questionCircle,
|
|
|
|
color: Colors.red,
|
|
|
|
color: Colors.red,
|
|
|
|
size: 15.0,
|
|
|
|
size: 15.0,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
: Container(),
|
|
|
|
],
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|