command_palette 0.5.0
command_palette: ^0.5.0 copied to clipboard
Flutter implementation of the Command Palette. Can be brought up via a keyboard shortcut.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.5.0 - 2022-07-20 #
Added #
- Open to nested action via
CommandPalette.of(context).openToAction(actionId)
Changed #
- When a nested action is selected, the label of that action will prefix the command palette text field. This can be enabled by setting
prefixNestedActionsto true (this is also the current default) inCommandPaletteStyle
Fixed #
- BREAKING: default open key is now platform dependent. Previously it was always Ctrl+K, but now it will check if the platform is MacOS (this includes Web running on Mac) and if so will change the default open key to Command. While this change does make things function as I originally intended, this is changing default behavior so I'm considering this a breaking change
0.4.1 - 2022-06-09 #
Added #
- allow the setting of size (height, width) and position (top, bottom, left, right) of the command palette modal via the CommandPaletteConfig class
0.3.1 - 2022-06-09 #
Fixed #
- specify supported platforms explicitly
- use kIsWeb to stop error from being thrown when platform is checked
0.3.0 - 2022-02-26 #
0.2.0 - 2022-02-03 #
Changed #
- Flutter 2.10.0
- BREAKING: The configuration for the command palette is now set by a CommandPaletteConfig object that is passed to the CommandPalette constructor. To migrate, wrap all the arguments in the CommandPalette constructor that aren't actions, child, or key, in a CommandPaletteConfig constructor and pass that to the config argument
- Now using a fuzzy search implementation. This should improve search results. This also includes an improved sub-string highlighter. Expect the behavior to be the same as VSCode's command palette, as the logic is an adaptation of what's used there.