Files
driver_tripz/lib/models/overlay_service.dart
Hamza-Ayed 5050aab9b7 25-6-23/1
2025-06-23 02:24:42 +03:00

14 lines
364 B
Dart

import 'package:flutter/services.dart';
class OverlayMethodChannel {
static const _channel = MethodChannel('com.sefer_driver/app_control');
static Future<void> bringToForeground() async {
try {
await _channel.invokeMethod('bringToForeground');
} on PlatformException catch (e) {
print('Error bringing app to foreground: $e');
}
}
}