atmos_vsc_keybindings_flutter 0.0.1-alpha
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 inEditableText, 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.