dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

scrollbar apperas when items are scrollable

Open IsaiChristian opened this issue 1 year ago • 1 comments

When you have items inside the dashboard that have a scrollbar, the dashboard will display a small/long scroll bar on the side that will react with the dashboarditem Im adding a screenshot to example the issue:

image

Ive tried defining a scroll controller with no succes

IsaiChristian avatar Mar 22 '23 16:03 IsaiChristian

You can wrap your dashboard widgets with NotificationListener widget like below

NotificationListener<ScrollNotification>(
                            onNotification: (notification) {
                              return true;
                            },
                            child: DashboardDataWidget(item: item),
                          ),

Here is the full code of itemBuilder

itemBuilder: (BaseDashboardBaseItem item) {
                    return Stack(
                      children: [
                        if (item.data != null)
                          NotificationListener<ScrollNotification>(
                            onNotification: (notification) {
                              return true;
                            },
                            child: DashboardDataWidget(item: item),
                          ),
                      ],
                    );
                  },
                  

rohanjariwala03 avatar Dec 04 '23 14:12 rohanjariwala03