key_flow 0.1.0 copy "key_flow: ^0.1.0" to clipboard
key_flow: ^0.1.0 copied to clipboard

A package that simplifies UI navigation by providing abstractions for keyboard shortcuts and keybindings.

example/lib/main.dart

import '/_common.dart';

// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

void main() {
  runApp(const MyApp());
}

// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      title: 'Email App Example',
      debugShowCheckedModeBanner: false,
      theme: ThemeData.dark(useMaterial3: true),
      routerConfig: router,
      builder: (context, page) {
        if (page == null) return const SizedBox.shrink();
        return Scaffold(
          key: UniqueKey(),
          drawer: const MainDrawer(),
          body: KeyFlowFocus(
            autofocus: true,
            control: MainControl(),
            child: page,
          ),
          bottomSheet: ControlMappingsBuilderExample(
            controls: [
              InboxControl(),
              MainControl(),
              MainDrawerControl(),
              MessagesControl(),
              NavigationControl(),
            ],
          ),
        );
      },
    );
  }
}
1
likes
160
points
68
downloads

Documentation

API reference

Publisher

verified publisherdev-cetera.com

Weekly Downloads

A package that simplifies UI navigation by providing abstractions for keyboard shortcuts and keybindings.

Homepage
Repository (GitHub)
View/report issues

Topics

#key-bindings #keyboard #shortcuts #navigation #superhuman

Funding

Consider supporting this project:

www.buymeacoffee.com
www.patreon.com
github.com

License

MIT (license)

Dependencies

df_pod, flutter, meta

More

Packages that depend on key_flow