v1.3.2+58
All checks were successful
Flutter Schmutter / build (push) Successful in 3m50s

This commit is contained in:
2025-06-16 19:10:00 +02:00
parent e9107a7f62
commit 089fe1f8df
12 changed files with 179 additions and 22 deletions

View File

@ -4,6 +4,7 @@ import 'package:flutter/services.dart';
import 'package:get/get.dart';
import 'package:encrypt_shared_preferences/provider.dart';
import 'package:f0ckapp/controller/localization_controller.dart';
import 'package:f0ckapp/utils/appversion.dart';
import 'package:f0ckapp/controller/theme_controller.dart';
import 'package:f0ckapp/controller/media_controller.dart';
@ -14,13 +15,21 @@ void main() async {
WidgetsFlutterBinding.ensureInitialized();
await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
await EncryptedSharedPreferencesAsync.initialize('VokTnbAbemBUa2j9');
await MyTranslations.loadTranslations();
await AppVersion.init();
Get.put(MediaController());
LocalizationController localizationController = Get.put(LocalizationController());
final ThemeController themeController = Get.put(ThemeController());
Get.addTranslations(MyTranslations.instance.keys);
Get.locale = localizationController.currentLocale.value;
//Locale systemLocale = WidgetsBinding.instance.platformDispatcher.locale;
runApp(
Obx(
() => MaterialApp(
locale: Get.locale,
navigatorKey: Get.key,
theme: themeController.currentTheme.value,
debugShowCheckedModeBanner: false,