BASE: Initialize Localization.
This commit is contained in:
@@ -12,6 +12,7 @@ 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:firebase_auth/firebase_auth.dart' as auth;
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
@@ -75,7 +76,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") ?? '') ??
|
||||
@@ -160,7 +161,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),
|
||||
@@ -170,7 +171,7 @@ class ServiceListController extends GetxController {
|
||||
child: RoundedButtonFill(
|
||||
borderRadius: 10.r,
|
||||
height: 5.5,
|
||||
title: "Cancel".tr,
|
||||
title: "Cancel".tr(),
|
||||
onPress: () {
|
||||
Get.back();
|
||||
},
|
||||
@@ -182,7 +183,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