fix marker rendering & modernize riding widgets for dark mode - 2026-04-11
This commit is contained in:
@@ -20,8 +20,10 @@ import 'constant/info.dart';
|
||||
import 'controller/home/ios_live_activity_service.dart';
|
||||
import 'controller/local/local_controller.dart';
|
||||
import 'controller/local/translations.dart';
|
||||
import 'controller/themes/themes.dart';
|
||||
import 'firebase_options.dart';
|
||||
import 'models/db_sql.dart';
|
||||
import 'print.dart';
|
||||
import 'splash_screen_page.dart';
|
||||
|
||||
// -- Global instances for easy access --
|
||||
@@ -33,7 +35,7 @@ DbSql sql = DbSql.instance;
|
||||
@pragma('vm:entry-point')
|
||||
Future<void> backgroundMessageHandler(RemoteMessage message) async {
|
||||
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
|
||||
print("Handling a background message: ${message.messageId}");
|
||||
Log.print("Handling a background message: ${message.messageId}");
|
||||
}
|
||||
|
||||
void main() {
|
||||
@@ -89,7 +91,13 @@ class MyApp extends StatelessWidget {
|
||||
translations: MyTranslation(),
|
||||
debugShowCheckedModeBanner: false,
|
||||
locale: localController.language,
|
||||
theme: localController.appTheme,
|
||||
theme: localController.language?.languageCode.startsWith('ar') == true
|
||||
? lightThemeArabic
|
||||
: lightThemeEnglish,
|
||||
darkTheme: localController.language?.languageCode.startsWith('ar') == true
|
||||
? darkThemeArabic
|
||||
: darkThemeEnglish,
|
||||
themeMode: localController.themeMode,
|
||||
|
||||
// --- [CRITICAL] ---
|
||||
// initialBinding tells GetX to run AppBindings once at the start.
|
||||
|
||||
Reference in New Issue
Block a user