BASE: Switch From EasyLocalization To GetX Localization.
This commit is contained in:
@@ -7,15 +7,16 @@ import 'package:customer/screen_ui/service_home_screen/service_list_screen.dart'
|
||||
import 'package:customer/themes/app_them_data.dart';
|
||||
import 'package:customer/themes/round_button_fill.dart';
|
||||
import 'package:customer/themes/show_toast_dialog.dart';
|
||||
import 'package:customer/utils/app_router.dart';
|
||||
import 'package:customer/widget/osm_map/map_picker_page.dart';
|
||||
import 'package:customer/widget/place_picker/location_picker_screen.dart';
|
||||
import 'package:customer/widget/place_picker/selected_location_model.dart';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:geocoding/geocoding.dart';
|
||||
import 'package:geolocator/geolocator.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
import 'package:get/get.dart';
|
||||
import '../../constant/assets.dart';
|
||||
import '../../utils/utils.dart';
|
||||
|
||||
@@ -40,7 +41,7 @@ class LocationPermissionScreen extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 25),
|
||||
child: Text(
|
||||
ConstTexts.enableLocation.tr(),
|
||||
ConstTexts.enableLocation.tr,
|
||||
style: AppThemeData.boldTextStyle(
|
||||
fontSize: 24.sp,
|
||||
color:
|
||||
@@ -55,7 +56,7 @@ class LocationPermissionScreen extends StatelessWidget {
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 50),
|
||||
child: Text(
|
||||
ConstTexts.allowLocation.tr(),
|
||||
ConstTexts.allowLocation.tr,
|
||||
style: AppThemeData.mediumTextStyle(
|
||||
fontSize: 16.sp,
|
||||
color:
|
||||
@@ -70,12 +71,12 @@ class LocationPermissionScreen extends StatelessWidget {
|
||||
RoundedButtonFill(
|
||||
borderRadius: 10.r,
|
||||
fontSizes: 14.sp,
|
||||
title: ConstTexts.useCurrentLocation.tr(),
|
||||
title: ConstTexts.useCurrentLocation.tr,
|
||||
onPress: () async {
|
||||
Constant.checkPermission(
|
||||
context: context,
|
||||
onTap: () async {
|
||||
ShowToastDialog.showLoader("Please wait...".tr());
|
||||
ShowToastDialog.showLoader("Please wait...".tr);
|
||||
ShippingAddress addressModel = ShippingAddress();
|
||||
try {
|
||||
await Geolocator.requestPermission();
|
||||
@@ -139,12 +140,12 @@ class LocationPermissionScreen extends StatelessWidget {
|
||||
RoundedButtonFill(
|
||||
borderRadius: 10.r,
|
||||
fontSizes: 14.sp,
|
||||
title: ConstTexts.setFromMap.tr(),
|
||||
title: ConstTexts.setFromMap.tr,
|
||||
onPress: () async {
|
||||
Constant.checkPermission(
|
||||
context: context,
|
||||
onTap: () async {
|
||||
ShowToastDialog.showLoader("Please wait...".tr());
|
||||
ShowToastDialog.showLoader("Please wait...".tr);
|
||||
ShippingAddress addressModel = ShippingAddress();
|
||||
try {
|
||||
await Geolocator.requestPermission();
|
||||
@@ -232,7 +233,7 @@ class LocationPermissionScreen extends StatelessWidget {
|
||||
});
|
||||
},
|
||||
child: Text(
|
||||
ConstTexts.enterManuallyLocation.tr(),
|
||||
ConstTexts.enterManuallyLocation.tr,
|
||||
style: AppThemeData.semiBoldTextStyle(
|
||||
fontSize: 16.sp,
|
||||
color:
|
||||
|
||||
Reference in New Issue
Block a user