Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollbar apperas when items are scrollable #23

Open
IsaiChristian opened this issue Mar 22, 2023 · 1 comment
Open

scrollbar apperas when items are scrollable #23

IsaiChristian opened this issue Mar 22, 2023 · 1 comment

Comments

@IsaiChristian
Copy link

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants