25-10-11/1

This commit is contained in:
Hamza-Ayed
2025-11-06 12:29:17 +03:00
parent 14484fcd8f
commit a69e4c6912
46 changed files with 14145 additions and 13529 deletions

View File

@@ -73,11 +73,11 @@ Future<void> backgroundMessageHandler(RemoteMessage message) async {
}
if (Platform.isAndroid) {
if (message.notification != null && message.notification!.title != null) {
String category = message.data['category'] ?? '';
if (message.notification != null) {
Log.print('message.notification!.title: ${message.notification!.title}');
if (message.notification?.title == 'Order' ||
message.notification?.title == 'OrderSpeed') {
if (category == 'Order' || category == 'OrderSpeed') {
final myListString = message.data['DriverList'] ?? '[]';
Log.print('myListString: $myListString');
@@ -97,7 +97,7 @@ Future<void> backgroundMessageHandler(RemoteMessage message) async {
enableDrag: true,
flag: OverlayFlag.focusPointer,
positionGravity: PositionGravity.auto,
height: 1400,
height: WindowSize.matchParent,
width: WindowSize.matchParent,
startPosition: const OverlayPosition(0, -30),
);
@@ -218,10 +218,6 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
Future<void> _initApp() async {
try {
final AppInitializer initializer = AppInitializer();
await initializer.initializeApp();
await EncryptionHelper.initialize();
if (!Get.isRegistered<NotificationController>()) {
Get.put(NotificationController());
}