4/1/2
This commit is contained in:
@@ -19,7 +19,9 @@ class SettingController extends GetxController {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void onInit() {
|
void onInit() {
|
||||||
isGoogleMapsEnabled = box.read(BoxName.googlaMapApp);
|
if (box.read(BoxName.googlaMapApp) != null) {
|
||||||
|
isGoogleMapsEnabled = box.read(BoxName.googlaMapApp);
|
||||||
|
}
|
||||||
update();
|
update();
|
||||||
super.onInit();
|
super.onInit();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class SettingsCaptain extends StatelessWidget {
|
|||||||
'Language'.tr,
|
'Language'.tr,
|
||||||
style: AppStyle.headTitle2,
|
style: AppStyle.headTitle2,
|
||||||
),
|
),
|
||||||
subtitle: Text('you can change languge of app'.tr),
|
subtitle: Text('ou can change the language of the app'.tr),
|
||||||
onTap: () => Get.to(const Language()),
|
onTap: () => Get.to(const Language()),
|
||||||
),
|
),
|
||||||
const Divider(
|
const Divider(
|
||||||
@@ -42,7 +42,7 @@ class SettingsCaptain extends StatelessWidget {
|
|||||||
style: AppStyle.headTitle2,
|
style: AppStyle.headTitle2,
|
||||||
),
|
),
|
||||||
subtitle: Text(
|
subtitle: Text(
|
||||||
'If you want to make Google Map App run dirctly when you apply order'
|
'If you want to make Google Map App run directly when you apply order'
|
||||||
.tr),
|
.tr),
|
||||||
trailing:
|
trailing:
|
||||||
GetBuilder<SettingController>(builder: (settingController) {
|
GetBuilder<SettingController>(builder: (settingController) {
|
||||||
|
|||||||
Reference in New Issue
Block a user