Skip to main content

atmos_vsc_keybindings_flutter 0.0.1-alpha copy "atmos_vsc_keybindings_flutter: ^0.0.1-alpha" to clipboard
atmos_vsc_keybindings_flutter: ^0.0.1-alpha copied to clipboard

Flutter bindings for atmos_vsc_keybindings — AssetBundle loaders, key bridge, and chord-aware shortcut widgets by Atom735.

atmos_vsc_keybindings_flutter #

Flutter layer for atmos_vsc_keybindings by Atom735.

Русский: README_RU.md.

  • Load bundled OS / negative dumps via AssetBundle
  • Map LogicalKeyboardKey ↔ VscKeyStroke
  • VscKeybindingsHost — chords, skip printable in EditableText, no Material

Install #

dependencies:
  atmos_vsc_keybindings_flutter: ^0.0.1-alpha

Quick start #

import 'package:atmos_vsc_keybindings_flutter/atmos_vsc_keybindings_flutter.dart';
import 'package:flutter/widgets.dart';

Future<Widget> buildHost() async {
  final defaults = await VscKeybindingsAssetLoader.loadPlatform(
    VscFlutterKeyBridge.currentPlatform,
  );
  final engine = VscKeybindingEngine.merge(
    defaults: defaults,
    platform: VscFlutterKeyBridge.currentPlatform,
    context: {'editorTextFocus': true},
  );
  return VscKeybindingsHost(
    engine: engine,
    onCommand: (match) {
      // run match.commandId
    },
    child: const SizedBox.expand(),
  );
}

License #

MIT.

0
likes
150
points
822
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter bindings for atmos_vsc_keybindings — AssetBundle loaders, key bridge, and chord-aware shortcut widgets by Atom735.

Repository (GitHub)
View/report issues

Topics

#keybindings #shortcuts #flutter #vscode

License

MIT (license)

Dependencies

atmos_vsc_keybindings, flutter

More

Packages that depend on atmos_vsc_keybindings_flutter