hotkey_manager 0.0.2 copy "hotkey_manager: ^0.0.2" to clipboard
hotkey_manager: ^0.0.2 copied to clipboard

outdated

This plugin allows Flutter desktop apps to defines system/inapp wide hot key.

example/lib/main.dart

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(
      theme: ThemeData(
        primaryColor: Color(0xff416ff4),
        canvasColor: Colors.white,
        scaffoldBackgroundColor: Color(0xffF7F9FB),
        dividerColor: Colors.grey.withOpacity(0.3),
      ),
      builder: BotToastInit(),
      navigatorObservers: [BotToastNavigatorObserver()],
      home: HomePage(),
    );
  }
}
115
likes
0
pub points
93%
popularity

Publisher

verified publisherleanflutter.dev

This plugin allows Flutter desktop apps to defines system/inapp wide hot key.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, uuid

More

Packages that depend on hotkey_manager