mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-07 17:13:00 +00:00
21 lines
520 B
Dart
21 lines
520 B
Dart
![]() |
import 'package:appflowy_editor/appflowy_editor.dart';
|
||
|
import 'package:flutter/foundation.dart';
|
||
|
import 'package:flutter/services.dart';
|
||
|
|
||
|
import '../startup.dart';
|
||
|
|
||
|
class DebugTask extends LaunchTask {
|
||
|
const DebugTask();
|
||
|
|
||
|
@override
|
||
|
Future<void> initialize(LaunchContext context) async {
|
||
|
// the hotkey manager is not supported on mobile
|
||
|
if (PlatformExtension.isMobile && kDebugMode) {
|
||
|
SystemChannels.textInput.invokeMethod('TextInput.hide');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
Future<void> dispose() async {}
|
||
|
}
|