doonfrs / pluto_grid_plus

PlutoGrid is a dataGrid for flutter that can be controlled by the keyboard on desktop and web. Of course, it works well on Android and IOS.
https://pluto.weblaze.dev
MIT License
18 stars 20 forks source link

Scrool bar shown only after point mouse on grid #17

Closed juppdes closed 4 months ago

juppdes commented 6 months ago

Expected results

Scrool bar always shown

Actual results

Scrool bar shown only after point mouse on grid

Code sample

            PlutoGrid(
                    onRowSecondaryTap: (event) => print('sec: $event'),
                    onRowsMoved: (event) => print('mov: $event'),
                    onRowChecked: (event) => print('chk: $event'),
                    onColumnsMoved: (event) => print('col: $event'),
                    onRowDoubleTap: (event) => print('dbl: $event'),
                    onSorted: (event) => print('sor: $event'),

                    mode: PlutoGridMode.selectWithOneTap, //  selectWithOneTap,
                    configuration: Theme.of(context).brightness == Brightness.dark 
                    style: PlutoGridStyleConfig.dark(
                      oddRowColor: Color(0x5C50504F), cellTextStyle: TextStyle(fontSize: 12),
                      activatedColor: Colors.blueGrey,
                    ),
                    localeText: PlutoGridLocaleText.brazilianPortuguese(),
                    scrollbar: PlutoGridScrollbarConfig(
                      isAlwaysShown: true,
                      scrollbarThickness: 10,
                      scrollbarThicknessWhileDragging: 10,
                      draggableScrollbar: true,
                    ),
                    columnSize: PlutoGridColumnSizeConfig(autoSizeMode: PlutoAutoSizeMode.scale)
                ) 

Execution Environment

Flutter version Flutter version is 3.19.1

PlutoGrid version PlutoGrid version is 8.3.0

OS Windows 11

doonfrs commented 6 months ago

I believe this is a flutter behavior, it is not related to pluto gird, correct me if I am wrong.

doonfrs commented 4 months ago

did you try surrounding it with Scrollbar(child: child)

https://api.flutter.dev/flutter/material/Scrollbar-class.html