BASE: Switch From EasyLocalization To GetX Localization.
This commit is contained in:
@@ -12,11 +12,12 @@ import 'package:customer/models/currency_model.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:easy_localization/easy_localization.dart';
|
||||
import 'package:customer/utils/app_router.dart';
|
||||
|
||||
import 'package:firebase_auth/firebase_auth.dart' as auth;
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart' hide Trans;
|
||||
import 'package:get/get.dart';
|
||||
import '../screen_ui/auth_screens/login_screen.dart';
|
||||
import '../screen_ui/multi_vendor_service/dash_board_screens/dash_board_screen.dart';
|
||||
import '../screen_ui/on_demand_service/on_demand_dashboard_screen.dart';
|
||||
@@ -76,7 +77,7 @@ class ServiceListController extends GetxController {
|
||||
SectionModel sectionModel,
|
||||
) async {
|
||||
try {
|
||||
ShowToastDialog.showLoader("Please wait...".tr());
|
||||
ShowToastDialog.showLoader("Please wait...".tr);
|
||||
Constant.sectionConstantModel = sectionModel;
|
||||
AppThemeData.primary300 = Color(
|
||||
int.tryParse(sectionModel.color?.replaceFirst("#", "0xff") ?? '') ??
|
||||
@@ -92,7 +93,7 @@ class ServiceListController extends GetxController {
|
||||
await _navigate(sectionModel);
|
||||
} else {
|
||||
ShowToastDialog.closeLoader();
|
||||
Get.offAll(() => const LoginScreen());
|
||||
Get.offAll(LoginScreen());
|
||||
}
|
||||
} else {
|
||||
ShowToastDialog.closeLoader();
|
||||
@@ -161,7 +162,7 @@ class ServiceListController extends GetxController {
|
||||
children: [
|
||||
Text(
|
||||
"If you select this Section/Service, your previously added items will be removed from the cart."
|
||||
.tr(),
|
||||
.tr,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
const SizedBox(height: 20),
|
||||
@@ -171,7 +172,7 @@ class ServiceListController extends GetxController {
|
||||
child: RoundedButtonFill(
|
||||
borderRadius: 10.r,
|
||||
height: 5.5,
|
||||
title: "Cancel".tr(),
|
||||
title: "Cancel".tr,
|
||||
onPress: () {
|
||||
Get.back();
|
||||
},
|
||||
@@ -183,7 +184,7 @@ class ServiceListController extends GetxController {
|
||||
Expanded(
|
||||
child: RoundedButtonFill(
|
||||
borderRadius: 10.r,
|
||||
title: "OK".tr(),
|
||||
title: "OK".tr,
|
||||
height: 5.5,
|
||||
onPress: () async {
|
||||
DatabaseHelper.instance.deleteAllCartProducts();
|
||||
|
||||
Reference in New Issue
Block a user