This commit is contained in:
Hamza Aleghwairyeen
2024-04-01 03:50:11 +03:00
parent b710fe314e
commit 6a0547276b
2 changed files with 5 additions and 3 deletions

View File

@@ -19,7 +19,9 @@ class SettingController extends GetxController {
@override
void onInit() {
isGoogleMapsEnabled = box.read(BoxName.googlaMapApp);
if (box.read(BoxName.googlaMapApp) != null) {
isGoogleMapsEnabled = box.read(BoxName.googlaMapApp);
}
update();
super.onInit();
}

View File

@@ -25,7 +25,7 @@ class SettingsCaptain extends StatelessWidget {
'Language'.tr,
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()),
),
const Divider(
@@ -42,7 +42,7 @@ class SettingsCaptain extends StatelessWidget {
style: AppStyle.headTitle2,
),
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),
trailing:
GetBuilder<SettingController>(builder: (settingController) {