Scrollbar and Scroll Behavior

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.
PlutoGrid is a Flutter package and is a data grid used on all platforms supported by Flutter.It is also open source and the source code is open to Github. https://www.youtube.com/watch?v=7lZGowuhd94 Features Freeze the column left and right Drag the...
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...

Example code to add custom widget to PlutoMenuBar.

PlutoGrid has default shortcut keys set, and users can change or set shortcut keys. Shortcut Range 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 :...

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. ...

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.invertedStylus,
PointerDeviceKind.unknown,
}
// In case of desktop
{
PointerDeviceKind.mouse,
PointerDeviceKind.trackpad,
PointerDeviceKind.unknown,
}
Since PointerDeviceKind.mouse is set in Desktop, it is difficult to select the text of PlutoCell by dragging (because it is scrolled by dragging).
In this case, you can customize dragDevices to remove PointerDeviceKind.mouse.
PlutoGrid(
configuration: const PlutoGridConfiguration(
scrollbar: PlutoGridScrollbarConfig(
dragDevices: {
// PointerDeviceKind.mouse,
PointerDeviceKind.trackpad,
PointerDeviceKind.unknown,
},
),
),
),
If you remove PointerDeviceKind.mouse from Desktop to remove the drag-to-scroll action, horizontal or vertical scrolling can be done with the scroll bar.
In the case of Desktop, the scroll bar appears when hovering the mouse over the scroll bar area.
