25-7-28-2
This commit is contained in:
13
lib/models/overlay_service.dart
Normal file
13
lib/models/overlay_service.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
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');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user