review issue fixed
This commit is contained in:
@@ -156,20 +156,21 @@ class _MycartState extends State<Mycart> {
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
AppNetworkImage(
|
||||
height: MediaQuery.of(context).size.height *
|
||||
0.08,
|
||||
width: cardWidth * 0.7,
|
||||
imageUrl: bestdealproduct
|
||||
.productImages?.first?.url ??
|
||||
"",
|
||||
backGroundColor: Colors.transparent,
|
||||
),
|
||||
height:
|
||||
MediaQuery.of(context).size.height *
|
||||
0.08,
|
||||
width: cardWidth * 0.7,
|
||||
imageUrl: bestdealproduct
|
||||
.productImages?.first?.url ??
|
||||
"",
|
||||
backGroundColor: Colors.transparent,
|
||||
radius: 10),
|
||||
Positioned(
|
||||
right: 1,
|
||||
bottom: 0,
|
||||
child: Container(
|
||||
padding: EdgeInsets.symmetric(
|
||||
horizontal: 6, vertical: 2),
|
||||
horizontal: 10, vertical: 10),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.red,
|
||||
borderRadius: BorderRadius.circular(5),
|
||||
@@ -179,7 +180,7 @@ class _MycartState extends State<Mycart> {
|
||||
"${calculateDiscountPercentage(double.parse(bestdealproduct!.basePrice), double.parse(bestdealproduct!.discountPrice))}% OFF",
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 12)),
|
||||
fontSize: 15)),
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -217,7 +218,7 @@ class _MycartState extends State<Mycart> {
|
||||
const Spacer(),
|
||||
Row(
|
||||
children: [
|
||||
Row(
|
||||
Column(
|
||||
children: [
|
||||
Text(
|
||||
"₹${bestdealproduct.discountPrice ?? ""} ",
|
||||
@@ -225,7 +226,7 @@ class _MycartState extends State<Mycart> {
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: context.customSemiBold(
|
||||
Colors.black, 12),
|
||||
Colors.black, 15),
|
||||
),
|
||||
Text(
|
||||
"₹${bestdealproduct.basePrice ?? ""}",
|
||||
@@ -234,7 +235,7 @@ class _MycartState extends State<Mycart> {
|
||||
style: context
|
||||
.customMedium(
|
||||
Colors.grey.withOpacity(0.8),
|
||||
12,
|
||||
15,
|
||||
)
|
||||
.copyWith(
|
||||
decoration:
|
||||
@@ -760,8 +761,7 @@ class _MycartState extends State<Mycart> {
|
||||
color: Colors.white,
|
||||
),
|
||||
);
|
||||
} else if (provider.allitem == null)
|
||||
{
|
||||
} else if (provider.allitem == null) {
|
||||
return Center(child: Text('🛒 Your Front Shop Cart is empty'));
|
||||
} else if (provider.allitem.items == null ||
|
||||
provider.allitem.items!.isEmpty) {
|
||||
@@ -791,8 +791,7 @@ class _MycartState extends State<Mycart> {
|
||||
size: 15,
|
||||
),
|
||||
onTap: () {
|
||||
if (provider.couponDataModel.data!.isNotEmpty)
|
||||
{
|
||||
if (provider.couponDataModel.data!.isNotEmpty) {
|
||||
context.push(MyRoutes.COUPONSSCREEN,
|
||||
extra: provider.allitem.id);
|
||||
} else {
|
||||
@@ -813,7 +812,7 @@ class _MycartState extends State<Mycart> {
|
||||
SummaryRow(
|
||||
label: 'Item Total Price', value: '₹${provider.totalPrice}'),
|
||||
SummaryRow(label: 'Discount Price', value: "${provider.discount}"),
|
||||
SummaryRow(label: 'Delivery Free', value: 'Free', isGreen: true),
|
||||
// SummaryRow(label: 'Delivery Free', value: 'Free', isGreen: true),
|
||||
Divider(
|
||||
thickness: 0.2,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user