BASE: Enhance Design.

This commit is contained in:
2025-12-08 12:05:48 +05:00
parent 3874ef062b
commit 653f1f93bf
34 changed files with 668 additions and 598 deletions

View File

@@ -122,5 +122,13 @@
"changeLanguage": "Change Language", "changeLanguage": "Change Language",
"selectPrefferedLanguage": "Select your preferred language for a personalized app experience." "selectPrefferedLanguage": "Select your preferred language for a personalized app experience.",
"searchStoreItem": "Search the store, item and more...",
"category": "Category",
"highlightsForU": "Highlights for you",
"newArrival": "New Arrivals",
"topBrands": "Top Brands",
"styleUp": "Style up with the latest fits, now at unbeatable prices.",
"additionlOffers": "Additional Offers"
} }

View File

@@ -122,14 +122,14 @@ class ConstTexts {
static String enterManuallyLocation = "enterManuallyLocation"; static String enterManuallyLocation = "enterManuallyLocation";
static String changeLanguage = "changeLanguage"; static String changeLanguage = "changeLanguage";
static String selectPrefferedLanguage = "selectPrefferedLanguage"; static String selectPrefferedLanguage = "selectPrefferedLanguage";
// static String rideDetails = "rideDetails"; static String searchStoreItem = "searchStoreItem";
// static String youDoNothaveSufficientwalletBalance = "youDoNothaveSufficientwalletBalance"; static String category = "category";
// static String somethingWentWrong = "somethingWentWrong"; static String highlightsForU = "highlightsForU";
// static String cash = "cash"; static String newArrival = "newArrivals";
// static String hugeSelectionOfAds = "hugeSelectionOfAds"; static String viewAllArrivals = "View All Arrivals";
// static String cosmetics = "cosmetics"; static String topBrands = "topBrands";
// static String moreThan1000Products = "moreThan1000Products"; static String styleUp = "styleUp";
// static String foodProducts = "foodProducts"; static String additionlOffers = "additionlOffers";
// static String enableLocation = "enableLocation"; // static String enableLocation = "enableLocation";
// static String allowLocation = "allowLocation"; // static String allowLocation = "allowLocation";
// static String useCurrentLocation = "useCurrentLocation"; // static String useCurrentLocation = "useCurrentLocation";

View File

@@ -1,5 +1,6 @@
import 'dart:convert'; import 'dart:convert';
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/utils/app_router.dart'; import 'package:customer/utils/app_router.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';

View File

@@ -4,6 +4,7 @@ import 'dart:io';
import 'dart:math' as maths; import 'dart:math' as maths;
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/models/cart_product_model.dart'; import 'package:customer/models/cart_product_model.dart';
import 'package:customer/models/coupon_model.dart'; import 'package:customer/models/coupon_model.dart';

View File

@@ -1,5 +1,6 @@
import 'dart:async'; import 'dart:async';
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/models/dine_in_booking_model.dart'; import 'package:customer/models/dine_in_booking_model.dart';
import 'package:customer/models/favourite_model.dart'; import 'package:customer/models/favourite_model.dart';

View File

@@ -1,4 +1,5 @@
import 'dart:io'; import 'dart:io';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/models/user_model.dart'; import 'package:customer/models/user_model.dart';

View File

@@ -1,3 +1,4 @@
import 'package:customer/constant/const_texts.dart';
import 'package:firebase_auth/firebase_auth.dart'; import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';

View File

@@ -3,6 +3,7 @@ import 'dart:io';
import 'dart:math' as maths; import 'dart:math' as maths;
import 'dart:math'; import 'dart:math';
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/models/gift_cards_model.dart'; import 'package:customer/models/gift_cards_model.dart';
import 'package:customer/themes/app_them_data.dart'; import 'package:customer/themes/app_them_data.dart';

View File

@@ -1,4 +1,5 @@
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/models/coupon_model.dart'; import 'package:customer/models/coupon_model.dart';
import 'package:customer/models/user_model.dart'; import 'package:customer/models/user_model.dart';

View File

@@ -1,5 +1,6 @@
import 'dart:developer'; import 'dart:developer';
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/models/coupon_model.dart'; import 'package:customer/models/coupon_model.dart';
import 'package:customer/models/user_model.dart'; import 'package:customer/models/user_model.dart';

View File

@@ -3,6 +3,7 @@ import 'dart:developer';
import 'dart:io'; import 'dart:io';
import 'dart:math' as maths; import 'dart:math' as maths;
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/models/coupon_model.dart'; import 'package:customer/models/coupon_model.dart';
import 'package:customer/models/wallet_transaction_model.dart'; import 'package:customer/models/wallet_transaction_model.dart';

View File

@@ -1,6 +1,7 @@
import 'dart:developer'; import 'dart:developer';
import 'dart:io'; import 'dart:io';
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/models/order_model.dart'; import 'package:customer/models/order_model.dart';
import 'package:customer/models/product_model.dart'; import 'package:customer/models/product_model.dart';

View File

@@ -1,3 +1,4 @@
import 'package:customer/constant/const_texts.dart';
import 'package:customer/models/section_model.dart'; import 'package:customer/models/section_model.dart';
import 'package:customer/screen_ui/cab_service_screens/cab_dashboard_screen.dart'; import 'package:customer/screen_ui/cab_service_screens/cab_dashboard_screen.dart';
import 'package:customer/screen_ui/ecommarce/dash_board_e_commerce_screen.dart'; import 'package:customer/screen_ui/ecommarce/dash_board_e_commerce_screen.dart';

View File

@@ -298,7 +298,7 @@ class HomeECommerceScreen extends StatelessWidget {
); );
}, },
child: TextFieldWidget( child: TextFieldWidget(
hintText: 'Search the store, item and more...'.tr, hintText: ConstTexts.searchStoreItem.tr,
controller: null, controller: null,
enable: false, enable: false,
backgroundColor: AppThemeData.grey50, backgroundColor: AppThemeData.grey50,
@@ -335,7 +335,7 @@ class HomeECommerceScreen extends StatelessWidget {
children: [ children: [
Expanded( Expanded(
child: Text( child: Text(
"Category".tr, ConstTexts.category.tr,
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: AppThemeData.semiBoldTextStyle( style: AppThemeData.semiBoldTextStyle(
color: color:
@@ -351,7 +351,7 @@ class HomeECommerceScreen extends StatelessWidget {
Get.to(const ViewAllCategoryScreen()); Get.to(const ViewAllCategoryScreen());
}, },
child: Text( child: Text(
"View all".tr, ConstTexts.viewAll.tr,
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: AppThemeData.semiBoldTextStyle( style: AppThemeData.semiBoldTextStyle(
decoration: TextDecoration.underline, decoration: TextDecoration.underline,
@@ -466,7 +466,9 @@ class HomeECommerceScreen extends StatelessWidget {
children: [ children: [
Expanded( Expanded(
child: Text( child: Text(
"Highlights for you".tr, ConstTexts
.highlightsForU
.tr,
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: TextStyle( style: TextStyle(
fontFamily: fontFamily:
@@ -547,7 +549,7 @@ class HomeECommerceScreen extends StatelessWidget {
Padding( Padding(
padding: const EdgeInsets.symmetric(horizontal: 16), padding: const EdgeInsets.symmetric(horizontal: 16),
child: Text( child: Text(
"New Arrivals".tr, ConstTexts.newArrival.tr,
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: AppThemeData.semiBoldTextStyle( style: AppThemeData.semiBoldTextStyle(
color: color:
@@ -594,14 +596,14 @@ class HomeECommerceScreen extends StatelessWidget {
isDark isDark
? AppThemeData.greyDark200 ? AppThemeData.greyDark200
: AppThemeData.grey200, : AppThemeData.grey200,
title: 'View All Arrivals'.tr, title: ConstTexts.viewAllArrivals.tr,
onPress: () { onPress: () {
Get.to( Get.to(
RestaurantListScreen(), RestaurantListScreen(),
arguments: { arguments: {
"vendorList": "vendorList":
controller.newArrivalRestaurantList, controller.newArrivalRestaurantList,
"title": "New Arrivals".tr, "title": ConstTexts.newArrival.tr,
}, },
); );
}, },
@@ -614,7 +616,7 @@ class HomeECommerceScreen extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Text(
"Top Brands".tr, ConstTexts.topBrands.tr,
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: AppThemeData.semiBoldTextStyle( style: AppThemeData.semiBoldTextStyle(
color: color:
@@ -777,7 +779,7 @@ class HomeECommerceScreen extends StatelessWidget {
), ),
), ),
Text( Text(
"Style up with the latest fits, now at unbeatable prices." ConstTexts.styleUp.tr
.tr, .tr,
textAlign: TextAlign.start, textAlign: TextAlign.start,
style: style:

View File

@@ -1,3 +1,4 @@
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/models/user_model.dart'; import 'package:customer/models/user_model.dart';
import 'package:customer/service/fire_store_utils.dart'; import 'package:customer/service/fire_store_utils.dart';

View File

@@ -1,3 +1,4 @@
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/controllers/advertisement_list_controller.dart'; import 'package:customer/controllers/advertisement_list_controller.dart';
import 'package:customer/models/advertisement_model.dart'; import 'package:customer/models/advertisement_model.dart';

View File

@@ -1,4 +1,5 @@
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/models/inbox_model.dart'; import 'package:customer/models/inbox_model.dart';
import 'package:customer/models/user_model.dart'; import 'package:customer/models/user_model.dart';

View File

@@ -1,4 +1,5 @@
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/models/inbox_model.dart'; import 'package:customer/models/inbox_model.dart';
import 'package:customer/models/user_model.dart'; import 'package:customer/models/user_model.dart';

View File

@@ -1,3 +1,4 @@
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/controllers/dine_in_controller.dart'; import 'package:customer/controllers/dine_in_controller.dart';
import 'package:customer/models/favourite_model.dart'; import 'package:customer/models/favourite_model.dart';

View File

@@ -1,4 +1,5 @@
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/controllers/dash_board_controller.dart'; import 'package:customer/controllers/dash_board_controller.dart';
import 'package:customer/controllers/redeem_gift_card_controller.dart'; import 'package:customer/controllers/redeem_gift_card_controller.dart';

View File

@@ -1,4 +1,5 @@
import 'package:badges/badges.dart' as badges; import 'package:badges/badges.dart' as badges;
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/controllers/map_view_controller.dart'; import 'package:customer/controllers/map_view_controller.dart';
import 'package:customer/models/advertisement_model.dart'; import 'package:customer/models/advertisement_model.dart';

View File

@@ -1,5 +1,6 @@
import 'dart:math'; import 'dart:math';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/controllers/food_home_controller.dart'; import 'package:customer/controllers/food_home_controller.dart';
import 'package:customer/models/coupon_model.dart'; import 'package:customer/models/coupon_model.dart';

View File

@@ -1,3 +1,4 @@
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/controllers/order_details_controller.dart'; import 'package:customer/controllers/order_details_controller.dart';
import 'package:customer/models/cart_product_model.dart'; import 'package:customer/models/cart_product_model.dart';

View File

@@ -1,3 +1,4 @@
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/controllers/my_profile_controller.dart'; import 'package:customer/controllers/my_profile_controller.dart';
import 'package:customer/screen_ui/on_demand_service/provider_inbox_screen.dart'; import 'package:customer/screen_ui/on_demand_service/provider_inbox_screen.dart';

View File

@@ -1,4 +1,7 @@
import 'dart:developer';
import 'package:badges/badges.dart' as badges; import 'package:badges/badges.dart' as badges;
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/controllers/restaurant_details_controller.dart'; import 'package:customer/controllers/restaurant_details_controller.dart';
import 'package:customer/models/cart_product_model.dart'; import 'package:customer/models/cart_product_model.dart';
@@ -728,7 +731,7 @@ class RestaurantDetailsScreen extends StatelessWidget {
children: [ children: [
const SizedBox(height: 20), const SizedBox(height: 20),
Text( Text(
"Additional Offers".tr, ConstTexts.additionlOffers.tr,
textAlign: TextAlign.start, textAlign: TextAlign.start,
maxLines: 1, maxLines: 1,
style: TextStyle( style: TextStyle(
@@ -1543,7 +1546,11 @@ class ProductListView extends StatelessWidget {
productModel.disPrice.toString(), productModel.disPrice.toString(),
); );
} }
return Padding( return InkWell(
onTap: () {
log("Product Clicked.");
},
child: Padding(
padding: const EdgeInsets.only(bottom: 20), padding: const EdgeInsets.only(bottom: 20),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
@@ -1577,8 +1584,10 @@ class ProductListView extends StatelessWidget {
color: color:
productModel.nonveg == true productModel.nonveg == true
? AppThemeData.danger300 ? AppThemeData.danger300
: AppThemeData.success400, : AppThemeData
fontFamily: AppThemeData.semiBold, .success400,
fontFamily:
AppThemeData.semiBold,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
), ),
@@ -1613,20 +1622,25 @@ class ProductListView extends StatelessWidget {
: Row( : Row(
children: [ children: [
Text( Text(
Constant.amountShow(amount: disPrice), Constant.amountShow(
amount: disPrice,
),
style: TextStyle( style: TextStyle(
fontSize: 16, fontSize: 16,
color: color:
isDark isDark
? AppThemeData.grey50 ? AppThemeData.grey50
: AppThemeData.grey900, : AppThemeData.grey900,
fontFamily: AppThemeData.semiBold, fontFamily:
AppThemeData.semiBold,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
), ),
const SizedBox(width: 5), const SizedBox(width: 5),
Text( Text(
Constant.amountShow(amount: price), Constant.amountShow(
amount: price,
),
style: TextStyle( style: TextStyle(
fontSize: 14, fontSize: 14,
decoration: decoration:
@@ -1639,7 +1653,8 @@ class ProductListView extends StatelessWidget {
isDark isDark
? AppThemeData.grey500 ? AppThemeData.grey500
: AppThemeData.grey400, : AppThemeData.grey400,
fontFamily: AppThemeData.semiBold, fontFamily:
AppThemeData.semiBold,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
), ),
@@ -1760,14 +1775,18 @@ class ProductListView extends StatelessWidget {
if (controller.favouriteItemList if (controller.favouriteItemList
.where( .where(
(p0) => (p0) =>
p0.productId == productModel.id, p0.productId ==
productModel.id,
) )
.isNotEmpty) { .isNotEmpty) {
FavouriteItemModel FavouriteItemModel
favouriteModel = FavouriteItemModel( favouriteModel = FavouriteItemModel(
productId: productModel.id, productId: productModel.id,
storeId: storeId:
controller.vendorModel.value.id, controller
.vendorModel
.value
.id,
userId: userId:
FireStoreUtils.getCurrentUid(), FireStoreUtils.getCurrentUid(),
); );
@@ -1785,7 +1804,10 @@ class ProductListView extends StatelessWidget {
favouriteModel = FavouriteItemModel( favouriteModel = FavouriteItemModel(
productId: productModel.id, productId: productModel.id,
storeId: storeId:
controller.vendorModel.value.id, controller
.vendorModel
.value
.id,
userId: userId:
FireStoreUtils.getCurrentUid(), FireStoreUtils.getCurrentUid(),
); );
@@ -1825,7 +1847,8 @@ class ProductListView extends StatelessWidget {
right: 20, right: 20,
child: child:
selectedVariants.isNotEmpty || selectedVariants.isNotEmpty ||
(productModel.addOnsTitle != (productModel
.addOnsTitle !=
null && null &&
productModel productModel
.addOnsTitle! .addOnsTitle!
@@ -1836,21 +1859,27 @@ class ProductListView extends StatelessWidget {
height: 4, height: 4,
color: color:
isDark isDark
? AppThemeData.grey900 ? AppThemeData
: AppThemeData.grey50, .grey900
: AppThemeData
.grey50,
textColor: textColor:
AppThemeData.primary300, AppThemeData.primary300,
onPress: () async { onPress: () async {
controller.selectedVariants controller
.selectedVariants
.clear(); .clear();
controller controller
.selectedIndexVariants .selectedIndexVariants
.clear(); .clear();
controller.selectedIndexArray controller
.selectedIndexArray
.clear(); .clear();
controller.selectedAddOns controller.selectedAddOns
.clear(); .clear();
controller.quantity.value = 1; controller
.quantity
.value = 1;
if (productModel if (productModel
.itemAttribute != .itemAttribute !=
null) { null) {
@@ -1891,17 +1920,20 @@ class ProductListView extends StatelessWidget {
} }
} }
final bool final bool
productIsInList = cartItem.any( productIsInList =
cartItem.any(
(product) => (product) =>
product.id == product.id ==
"${productModel.id}~${productModel.itemAttribute!.variants!.where((element) => element.variantSku == controller.selectedVariants.join('-')).isNotEmpty ? productModel.itemAttribute!.variants!.where((element) => element.variantSku == controller.selectedVariants.join('-')).first.variantId.toString() : ""}", "${productModel.id}~${productModel.itemAttribute!.variants!.where((element) => element.variantSku == controller.selectedVariants.join('-')).isNotEmpty ? productModel.itemAttribute!.variants!.where((element) => element.variantSku == controller.selectedVariants.join('-')).first.variantId.toString() : ""}",
); );
if (productIsInList) { if (productIsInList) {
CartProductModel element = CartProductModel
cartItem.firstWhere( element = cartItem
.firstWhere(
(product) => (product) =>
product.id == product
.id ==
"${productModel.id}~${productModel.itemAttribute!.variants!.where((element) => element.variantSku == controller.selectedVariants.join('-')).isNotEmpty ? productModel.itemAttribute!.variants!.where((element) => element.variantSku == controller.selectedVariants.join('-')).first.variantId.toString() : ""}", "${productModel.id}~${productModel.itemAttribute!.variants!.where((element) => element.variantSku == controller.selectedVariants.join('-')).isNotEmpty ? productModel.itemAttribute!.variants!.where((element) => element.variantSku == controller.selectedVariants.join('-')).first.variantId.toString() : ""}",
); );
controller controller
@@ -1927,10 +1959,12 @@ class ProductListView extends StatelessWidget {
"${productModel.id}", "${productModel.id}",
) )
.isNotEmpty) { .isNotEmpty) {
CartProductModel element = CartProductModel
cartItem.firstWhere( element = cartItem
.firstWhere(
(product) => (product) =>
product.id == product
.id ==
"${productModel.id}", "${productModel.id}",
); );
controller controller
@@ -2028,25 +2062,25 @@ class ProductListView extends StatelessWidget {
); );
}, },
child: Icon( child: Icon(
Icons.remove, Icons
.remove,
color: color:
isDark isDark
? AppThemeData ? AppThemeData.grey50
.grey50 : AppThemeData.greyDark50,
: AppThemeData
.greyDark50,
), ),
), ),
Padding( Padding(
padding: padding: const EdgeInsets.symmetric(
const EdgeInsets.symmetric(
horizontal: horizontal:
14, 14,
), ),
child: Text( child: Text(
cartItem cartItem
.where( .where(
(p0) => (
p0,
) =>
p0.id == p0.id ==
productModel.id, productModel.id,
) )
@@ -2056,19 +2090,17 @@ class ProductListView extends StatelessWidget {
textAlign: textAlign:
TextAlign TextAlign
.start, .start,
maxLines: 1, maxLines:
1,
style: TextStyle( style: TextStyle(
fontSize: fontSize:
16, 16,
overflow: overflow:
TextOverflow TextOverflow.ellipsis,
.ellipsis,
fontFamily: fontFamily:
AppThemeData AppThemeData.medium,
.medium,
fontWeight: fontWeight:
FontWeight FontWeight.w500,
.w500,
color: color:
isDark isDark
? AppThemeData.grey100 ? AppThemeData.grey100
@@ -2127,10 +2159,8 @@ class ProductListView extends StatelessWidget {
Icons.add, Icons.add,
color: color:
isDark isDark
? AppThemeData ? AppThemeData.grey50
.grey50 : AppThemeData.greyDark50,
: AppThemeData
.greyDark50,
), ),
), ),
], ],
@@ -2151,17 +2181,16 @@ class ProductListView extends StatelessWidget {
.primary300, .primary300,
onPress: () async { onPress: () async {
if (1 <= if (1 <=
(productModel (productModel.quantity ??
.quantity ??
0) || 0) ||
(productModel (productModel.quantity ??
.quantity ??
0) == 0) ==
-1) { -1) {
controller.addToCart( controller.addToCart(
productModel: productModel:
productModel, productModel,
price: price, price:
price,
discountPrice: discountPrice:
disPrice, disPrice,
isIncrement: isIncrement:
@@ -2183,6 +2212,7 @@ class ProductListView extends StatelessWidget {
), ),
], ],
), ),
),
); );
}, },
), ),

View File

@@ -1,3 +1,4 @@
import 'package:customer/constant/const_texts.dart';
import 'package:customer/controllers/scan_qr_code_controller.dart'; import 'package:customer/controllers/scan_qr_code_controller.dart';
import 'package:customer/models/vendor_model.dart'; import 'package:customer/models/vendor_model.dart';
import 'package:customer/themes/app_them_data.dart'; import 'package:customer/themes/app_them_data.dart';

View File

@@ -1,4 +1,5 @@
import 'package:bottom_picker/bottom_picker.dart'; import 'package:bottom_picker/bottom_picker.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:dotted_border/dotted_border.dart'; import 'package:dotted_border/dotted_border.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';

View File

@@ -1,4 +1,5 @@
import 'package:cached_network_image/cached_network_image.dart'; import 'package:cached_network_image/cached_network_image.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/controllers/theme_controller.dart'; import 'package:customer/controllers/theme_controller.dart';
import 'package:customer/models/banner_model.dart'; import 'package:customer/models/banner_model.dart';

View File

@@ -1,4 +1,5 @@
import 'package:clipboard/clipboard.dart'; import 'package:clipboard/clipboard.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:dotted_border/dotted_border.dart'; import 'package:dotted_border/dotted_border.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';

View File

@@ -1,4 +1,5 @@
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/models/inbox_model.dart'; import 'package:customer/models/inbox_model.dart';
import 'package:customer/models/user_model.dart'; import 'package:customer/models/user_model.dart';

View File

@@ -1,4 +1,5 @@
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/models/inbox_model.dart'; import 'package:customer/models/inbox_model.dart';
import 'package:customer/models/user_model.dart'; import 'package:customer/models/user_model.dart';

View File

@@ -1,3 +1,4 @@
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:geocoding/geocoding.dart'; import 'package:geocoding/geocoding.dart';

View File

@@ -1,3 +1,4 @@
import 'package:customer/constant/const_texts.dart';
import 'package:customer/screen_ui/parcel_service/parcel_review_screen.dart'; import 'package:customer/screen_ui/parcel_service/parcel_review_screen.dart';
import 'package:dotted_border/dotted_border.dart'; import 'package:dotted_border/dotted_border.dart';

View File

@@ -1,3 +1,4 @@
import 'package:customer/constant/const_texts.dart';
import 'package:customer/constant/constant.dart'; import 'package:customer/constant/constant.dart';
import 'package:customer/models/rental_order_model.dart'; import 'package:customer/models/rental_order_model.dart';
import 'package:customer/payment/createRazorPayOrderModel.dart'; import 'package:customer/payment/createRazorPayOrderModel.dart';