21 lines
532 B
Dart
Raw Normal View History

import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';
import 'package:universal_platform/universal_platform.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 (UniversalPlatform.isMobile && kDebugMode) {
await SystemChannels.textInput.invokeMethod('TextInput.hide');
}
}
@override
Future<void> dispose() async {}
}