flutter(rider): rebuild lib on Cubit/Bloc + Tripz backend (core + auth slice)
- keep store identity (com.mobileapp.store.ride, shorebird, firebase, fonts); old lib -> lib_old_getx - core: config/di/router(go_router)/theme/api_client(dio+tenant+bearer)/token_store(secure) - auth: repo + AuthCubit + OTP phone/otp screens; home: flutter_map (OSM placeholder, انطلق TODO) - android usesCleartextTraffic=true for http API; maps=flutter_map (no Google), state=Cubit Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
import 'package:Tripz/constant/box_name.dart';
|
||||
import 'package:Tripz/main.dart';
|
||||
import 'package:get/get.dart';
|
||||
|
||||
class SettingController extends GetxController {
|
||||
bool isGoogleMapsEnabled = false;
|
||||
|
||||
void onChangMapApp() {
|
||||
if (!isGoogleMapsEnabled) {
|
||||
isGoogleMapsEnabled = true;
|
||||
box.write(BoxName.googlaMapApp, true);
|
||||
update();
|
||||
} else {
|
||||
isGoogleMapsEnabled = false;
|
||||
box.write(BoxName.googlaMapApp, false);
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
if (box.read(BoxName.googlaMapApp) != null) {
|
||||
isGoogleMapsEnabled = box.read(BoxName.googlaMapApp);
|
||||
}
|
||||
update();
|
||||
super.onInit();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user