Shortcuts

Search for a command to run...

No comments yet. Be the first to comment.
PlutoGrid is a data grid. It is a Flutter package that allows you to easily edit large amounts of data with the keyboard. It can be used on any platform supported by Flutter.
The default ScrollBehavior.dragDevices of PlutoGrid is as follows.(dragDevices is a setting that allows scrolling by dragging to the set pointer type.) // In case of Mobile { PointerDeviceKind.touch, PointerDeviceKind.stylus, PointerDeviceKind....
A unique id can be set for PlutoMenuItem. PlutoMenuItem( id: 'unique_id', title: 'Menu 1', ) If PlutoMenuItem is created in build method, you should set a unique id for PlutoMenuItem.Otherwise, when PlutoMenuBar is rebuilt, incorrect actions suc...

The default ScrollBehavior.dragDevices of PlutoGrid is as follows.(dragDevices is a setting that allows scrolling by dragging to the set pointer type.) // In case of Mobile { PointerDeviceKind.touch, PointerDeviceKind.stylus, PointerDeviceKind....

Example code to add custom widget to PlutoMenuBar.

PlutoLayout is a Flutter package for configuring layouts such as CMS or admin service.You can configure tab views or menus on the top, bottom, left, and right sides.It also supports keyboard shortcuts and allows you to toggle or resize the tab view. ...

PlutoGrid has default shortcut keys set, and users can change or set shortcut keys.
The scope of the shortcut depends on the focus.
PlutoGrid : In the state that TextField is not focused.
You can set custom shortcut keys.TextField : In case the cell in edit state or TextField of column filtering is focused.
You cannot set custom shortcut keys.PlutoGrid rangePlutoGridConfiguration.tabKeyAction to moveToNextOnEdge to continue moving.PlutoGrid.onSelected callback if PlutoGird is in selection mode.
Additional actions can be set with PlutoGridConfiguration.enterKeyAction.PlutoGird is in selection mode, PlutoGrid.onSelected is called with PlutoGridOnSelectedEvent containing a null value which means cancel the selection.
In the non-selection mode, the edit state of the cell is canceled.PlutoGridStateManager.setShowColumnFilter.
If the F3 key is pressed once again while the focus is moved to the column filter, the column filter pop-up is called.
Also, if you press the Escape key in the column filter focus, the focus is moved to the cell before moving.PlutoColumn.enableSorting is enabled.PlutoGrid(
configuration: PlutoGridConfiguration(
shortcut: PlutoGridShortcut(
actions: {
// This is a Map with basic shortcut keys and actions set.
...PlutoGridShortcut.defaultActions,
// You can override the enter key behavior as below.
LogicalKeySet(LogicalKeyboardKey.enter): CustomEnterKeyAction(),
},
),
),
);
// Create a new class that inherits from PlutoGridShortcutAction
// If the execute method is implemented,
// the implemented method is executed when the enter key is pressed.
class CustomEnterKeyAction extends PlutoGridShortcutAction {
@override
void execute({
required PlutoKeyManagerEvent keyEvent,
required PlutoGridStateManager stateManager,
}) {
print('Pressed enter key.');
}
}
If you have any questions or need to add features, please register on GitHub. PlutoGrid Github