Skip to main content

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

Flutter command host and shortcut helpers for atmos_vsc_commands (wires keybindings engine to VscCommandService) by Atom735.

atmos_vsc_commands_flutter #

Flutter layer for atmos_vsc_commands by Atom735.

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

  • VscCommandHost — canonical path: keybindings Host → VscCommandService.executeMatch (chords + when)
  • VscCommandAction / VscShortcuts — optional single-step Shortcuts helpers
  • Re-exports atmos_vsc_keybindings_flutter (no local key parser)

Install #

dependencies:
  atmos_vsc_commands_flutter: ^0.0.1-alpha

Quick start #

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

Future<Widget> buildHost() async {
  final service = VscCommandService(
    context: {'editorTextFocus': true},
  );
  service.register('workbench.action.files.save', (_) => null);

  final defaults = await VscKeybindingsAssetLoader.loadPlatform(
    VscFlutterKeyBridge.currentPlatform,
  );
  final engine = service.createEngine(
    defaults: defaults,
    platform: VscFlutterKeyBridge.currentPlatform,
  );

  return VscCommandHost(
    service: service,
    engine: engine,
    child: const SizedBox.expand(),
  );
}

License #

MIT.

0
likes
150
points
800
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter command host and shortcut helpers for atmos_vsc_commands (wires keybindings engine to VscCommandService) by Atom735.

Repository (GitHub)
View/report issues

Topics

#commands #keybindings #flutter #vscode

License

MIT (license)

Dependencies

atmos_vsc_commands, atmos_vsc_keybindings_flutter, flutter

More

Packages that depend on atmos_vsc_commands_flutter