hotkey_manager 0.0.1 hotkey_manager: ^0.0.1 copied to clipboard
This plugin allows Flutter **desktop** apps to defines system-wide hot key.
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
import './pages/home.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
builder: BotToastInit(),
navigatorObservers: [BotToastNavigatorObserver()],
home: HomePage(),
);
}
}