Mehmetyaz / dashboard

Dynamic dashboard widget that allows your users to create their own layouts. Rezise, move, indirect resize/move, auto re-layout are supported.
https://pub.dev/packages/dashboard
Apache License 2.0
104 stars 40 forks source link

scrollbar apperas when items are scrollable #23

Open IsaiChristian opened 1 year ago

IsaiChristian commented 1 year ago

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

rohanjariwala03 commented 11 months ago

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),
                          ),
                      ],
                    );
                  },