MINOR-FIX: Localization Problem Resolve.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class ConstTexts {
|
||||
static String loginToExplore = "logintoExplore";
|
||||
static String loginToExplore = "loginToExplore";
|
||||
static String emailAddress = "emailAddress";
|
||||
static String password = "password";
|
||||
static String enterPassword = "enterPassword";
|
||||
@@ -60,9 +60,11 @@ class ConstTexts {
|
||||
static String pleaseWait = "pleaseWait";
|
||||
static String change = "change";
|
||||
static String yourSosRequest = "yourSosRequest";
|
||||
static String yourSosrequestAlreadySubmitted = "yourSosrequestAlreadySubmitted";
|
||||
static String yourSosrequestAlreadySubmitted =
|
||||
"yourSosrequestAlreadySubmitted";
|
||||
static String payNow = "payNow";
|
||||
static String youDoNothaveSufficientwalletBalance = "youDoNothaveSufficientwalletBalance";
|
||||
static String youDoNothaveSufficientwalletBalance =
|
||||
"youDoNothaveSufficientwalletBalance";
|
||||
static String somethingWentWrong = "somethingWentWrong";
|
||||
static String cash = "cash";
|
||||
static String coupon = "coupon";
|
||||
@@ -102,21 +104,22 @@ class ConstTexts {
|
||||
static String plsLoginToAcc = "plsLoginToAcc";
|
||||
static String youAreNotLoggedIn = "youAreNotLoggedIn";
|
||||
static String noOrderfound = "noOrderfound";
|
||||
// static String yourSosrequestAlreadySubmitted = "yourSosrequestAlreadySubmitted";
|
||||
// static String payNow = "payNow";
|
||||
// static String youDoNothaveSufficientwalletBalance = "youDoNothaveSufficientwalletBalance";
|
||||
// static String somethingWentWrong = "somethingWentWrong";
|
||||
// static String cash = "cash";
|
||||
// static String coupon = "coupon";
|
||||
// static String couponNotFound = "couponNotFound";
|
||||
// static String tapToApply = "tapToApply";
|
||||
// static String home = "home";
|
||||
// static String myBookings = "myBookings";
|
||||
// static String profile = "profile";
|
||||
// static String wallet = "wallet";
|
||||
// static String cabServiceType = "cabServiceType";
|
||||
// static String everyRideVerified = "everyRideVerified";
|
||||
// static String allDriversIDCheck = "allDriversIDCheck";
|
||||
static String otherServices = "otherServices";
|
||||
static String foodDelivery = "foodDelivery";
|
||||
static String delivery = "delivery";
|
||||
static String bookingTaxi = "bookingTaxi";
|
||||
static String updateYourWardrobe = "updateYourWardrobe";
|
||||
static String weDeliverSafely = "weDeliverSafely";
|
||||
static String rent = "rent";
|
||||
static String hugeSelectionOfAds = "hugeSelectionOfAds";
|
||||
static String cosmetics = "cosmetics";
|
||||
static String moreThan1000Products = "moreThan1000Products";
|
||||
static String foodProducts = "foodProducts";
|
||||
static String enableLocation = "enableLocation";
|
||||
static String allowLocation = "allowLocation";
|
||||
static String useCurrentLocation = "useCurrentLocation";
|
||||
static String setFromMap = "setFromMap";
|
||||
static String enterManuallyLocation = "enterManuallyLocation";
|
||||
// static String intercity = "intercity";
|
||||
// static String aroundTheCity = "aroundTheCity";
|
||||
// static String rideDetails = "rideDetails";
|
||||
|
||||
@@ -13,8 +13,6 @@ import 'controllers/global_setting_controller.dart';
|
||||
import 'controllers/theme_controller.dart';
|
||||
import 'firebase_options.dart';
|
||||
|
||||
|
||||
|
||||
void main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await EasyLocalization.ensureInitialized();
|
||||
@@ -30,6 +28,7 @@ void main() async {
|
||||
|
||||
runApp(
|
||||
EasyLocalization(
|
||||
startLocale: Locale('en', 'US'),
|
||||
supportedLocales: [
|
||||
Locale('en', 'US'),
|
||||
Locale('uz', 'UZ'),
|
||||
|
||||
@@ -273,7 +273,7 @@ class LoginScreen extends StatelessWidget {
|
||||
child: Center(
|
||||
child: Text.rich(
|
||||
TextSpan(
|
||||
text: ConstTexts.dontHaveAccount.tr(),
|
||||
text: "${ConstTexts.dontHaveAccount.tr()} ",
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
color:
|
||||
isDark
|
||||
|
||||
@@ -257,7 +257,7 @@ class MobileLoginScreen extends StatelessWidget {
|
||||
child: Center(
|
||||
child: Text.rich(
|
||||
TextSpan(
|
||||
text: ConstTexts.dontHaveAccount.tr(),
|
||||
text: "${ConstTexts.dontHaveAccount.tr()} ",
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
color:
|
||||
isDark
|
||||
|
||||
@@ -200,7 +200,7 @@ class OtpVerificationScreen extends StatelessWidget {
|
||||
child: Center(
|
||||
child: Text.rich(
|
||||
TextSpan(
|
||||
text: ConstTexts.dontHaveAccount.tr(),
|
||||
text: "${ConstTexts.dontHaveAccount.tr()} ",
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
color:
|
||||
isDark
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'package:customer/constant/const_texts.dart';
|
||||
import 'package:customer/constant/constant.dart';
|
||||
import 'package:customer/controllers/theme_controller.dart';
|
||||
import 'package:customer/models/user_model.dart';
|
||||
@@ -39,9 +40,9 @@ class LocationPermissionScreen extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 25),
|
||||
child: Text(
|
||||
"Enable Location for a Personalized Experience".tr(),
|
||||
ConstTexts.enableLocation.tr(),
|
||||
style: AppThemeData.boldTextStyle(
|
||||
fontSize: 24,
|
||||
fontSize: 24.sp,
|
||||
color:
|
||||
isDark
|
||||
? AppThemeData.greyDark900
|
||||
@@ -54,10 +55,9 @@ class LocationPermissionScreen extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 50),
|
||||
child: Text(
|
||||
"Allow location access to discover beauty stores and services near you."
|
||||
.tr(),
|
||||
ConstTexts.allowLocation.tr(),
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
fontSize: 14,
|
||||
fontSize: 16.sp,
|
||||
color:
|
||||
isDark
|
||||
? AppThemeData.greyDark600
|
||||
@@ -69,7 +69,8 @@ class LocationPermissionScreen extends StatelessWidget {
|
||||
const SizedBox(height: 30),
|
||||
RoundedButtonFill(
|
||||
borderRadius: 10.r,
|
||||
title: "Use current location".tr(),
|
||||
fontSizes: 14.sp,
|
||||
title: ConstTexts.useCurrentLocation.tr(),
|
||||
onPress: () async {
|
||||
Constant.checkPermission(
|
||||
context: context,
|
||||
@@ -137,7 +138,8 @@ class LocationPermissionScreen extends StatelessWidget {
|
||||
const SizedBox(height: 10),
|
||||
RoundedButtonFill(
|
||||
borderRadius: 10.r,
|
||||
title: "Set from map".tr(),
|
||||
fontSizes: 14.sp,
|
||||
title: ConstTexts.setFromMap.tr(),
|
||||
onPress: () async {
|
||||
Constant.checkPermission(
|
||||
context: context,
|
||||
@@ -230,9 +232,9 @@ class LocationPermissionScreen extends StatelessWidget {
|
||||
});
|
||||
},
|
||||
child: Text(
|
||||
"Enter Manually location".tr(),
|
||||
ConstTexts.enterManuallyLocation.tr(),
|
||||
style: AppThemeData.semiBoldTextStyle(
|
||||
fontSize: 16,
|
||||
fontSize: 16.sp,
|
||||
color:
|
||||
isDark
|
||||
? AppThemeData.greyDark900
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import 'dart:developer';
|
||||
import 'package:customer/constant/const_texts.dart';
|
||||
import 'package:customer/models/section_model.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
@@ -66,7 +68,7 @@ class ServiceListScreen extends StatelessWidget {
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 16.r),
|
||||
child: Text(
|
||||
"Other Services",
|
||||
ConstTexts.otherServices.tr(),
|
||||
style: TextStyle(
|
||||
fontFamily: AppThemeData.bold,
|
||||
fontWeight: FontWeight.w700,
|
||||
@@ -80,23 +82,23 @@ class ServiceListScreen extends StatelessWidget {
|
||||
// Other Services Section
|
||||
_otherServicesCardMaker(
|
||||
image: "assets/images/garderob_img.png",
|
||||
title: "Обновить гардероб",
|
||||
subtitle: "Доставляем безопасно",
|
||||
title: ConstTexts.updateYourWardrobe.tr(),
|
||||
subtitle: ConstTexts.weDeliverSafely.tr(),
|
||||
),
|
||||
_otherServicesCardMaker(
|
||||
image: "assets/images/keys_img.png",
|
||||
title: "Аренда",
|
||||
subtitle: "Огромный выбор объявлений!",
|
||||
title: ConstTexts.rent.tr(),
|
||||
subtitle: ConstTexts.hugeSelectionOfAds.tr(),
|
||||
),
|
||||
_otherServicesCardMaker(
|
||||
image: "assets/images/cosmetics_img.png",
|
||||
title: "Косметика",
|
||||
subtitle: "Более 1000 товаров",
|
||||
title: ConstTexts.cosmetics.tr(),
|
||||
subtitle: ConstTexts.moreThan1000Products.tr(),
|
||||
),
|
||||
_otherServicesCardMaker(
|
||||
image: "assets/images/products_img.png",
|
||||
title: "Продукты питания",
|
||||
subtitle: "Более 1000 товаров",
|
||||
title: ConstTexts.foodProducts.tr(),
|
||||
subtitle: ConstTexts.moreThan1000Products.tr(),
|
||||
),
|
||||
SizedBox(height: 45.h),
|
||||
],
|
||||
@@ -207,7 +209,7 @@ class ServiceListScreen extends StatelessWidget {
|
||||
spacing: 12.r,
|
||||
children: [
|
||||
_mainCardsMaker(
|
||||
title: "Food Delivery",
|
||||
title: ConstTexts.foodDelivery.tr(),
|
||||
image: "assets/images/food_img.png",
|
||||
// onTap: () {
|
||||
// log("Main Card Tapped");
|
||||
@@ -225,7 +227,7 @@ class ServiceListScreen extends StatelessWidget {
|
||||
// },
|
||||
),
|
||||
_mainCardsMaker(
|
||||
title: "Delivery",
|
||||
title: ConstTexts.delivery.tr(),
|
||||
image: "assets/images/delivery_img.png",
|
||||
onTap: () {
|
||||
log("Main Card Tapped");
|
||||
@@ -274,7 +276,7 @@ class ServiceListScreen extends StatelessWidget {
|
||||
Expanded(
|
||||
child: Text(
|
||||
maxLines: 2,
|
||||
"Booking Taxi",
|
||||
ConstTexts.bookingTaxi.tr(),
|
||||
style: TextStyle(
|
||||
overflow: TextOverflow.ellipsis,
|
||||
fontFamily: AppThemeData.bold,
|
||||
@@ -348,7 +350,7 @@ class ServiceListScreen extends StatelessWidget {
|
||||
style: TextStyle(
|
||||
overflow: TextOverflow.ellipsis,
|
||||
fontFamily: AppThemeData.bold,
|
||||
fontSize: 14.sp,
|
||||
fontSize: 15.sp,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: AppThemeData.darkGrey,
|
||||
),
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
import '../../constant/assets.dart';
|
||||
import '../../controllers/splash_controller.dart';
|
||||
import '../../themes/app_them_data.dart';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user