Files
intaleq_driver/lib/models/overlay_service.dart
Hamza-Ayed 83a97baed1 25-7-28-2
2025-07-28 12:21:28 +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');
}
}
}