fix marker rendering & modernize riding widgets for dark mode - 2026-04-11
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import 'dart:io';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import '../print.dart';
|
||||
|
||||
/// خدمة التحكم بوضع النافذة العائمة (Picture-in-Picture) على أندرويد.
|
||||
/// تُستدعى عند بدء الرحلة لتفعيل PiP تلقائياً عند خروج المستخدم من التطبيق.
|
||||
class PipService {
|
||||
@@ -23,7 +25,7 @@ class PipService {
|
||||
try {
|
||||
await _channel.invokeMethod('enablePip');
|
||||
} catch (e) {
|
||||
print('PiP enable error: \$e');
|
||||
Log.print('PiP enable error: \$e');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +35,7 @@ class PipService {
|
||||
try {
|
||||
await _channel.invokeMethod('disablePip');
|
||||
} catch (e) {
|
||||
print('PiP disable error: \$e');
|
||||
Log.print('PiP disable error: \$e');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +46,7 @@ class PipService {
|
||||
final result = await _channel.invokeMethod<bool>('enterPip');
|
||||
return result ?? false;
|
||||
} catch (e) {
|
||||
print('PiP enter error: \$e');
|
||||
Log.print('PiP enter error: \$e');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user