如何避免使用Spesific Widget上的CupertinoApp小部件功能?

发布于 2025-02-10 16:56:52 字数 385 浏览 1 评论 0原文

我在小部件树的根上使用CupertinoApp小部件,而不是物质app。我喜欢在小部件上具有CupertinoApp的功能。但是在某些情况下,我也想避免在一个spesific小部件上进行此功能。例如,我使用的是一个可以水平滚动的滴定型栏,并且每个项目中都有一个标识符下划线。由于Cupertinoapp小部件,出现了滚动条并溢出标识符下划线。如何避免在特定小部件上的CupertinoApp小部件的功能。

I am using CupertinoApp Widget on the root of my widget tree instead of MaterialApp. I like to have the functionality of CupertinoApp on widgets. But in some cases, I also want to avoid this functionality on a spesific widget. For example, I am using a titleNavigationBar that can be scrollable horizontally, and has a identifier underline in each item. Because of CupertinoApp Widget, a scrollBar is appearing and overflow the identifier underline. How to avoid functionality of cupertinoApp Widget on specific widget.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

等待我真够勒 2025-02-17 16:56:52

您可以使用RawsCrollbar,并将缩略图设置为您喜欢的任何颜色。

 RawScrollbar(
                thumbColor: Colors.redAccent,
                radius: Radius.circular(20),
                thickness: 5,
                child: //scrollable widget
                       )

You can use RawScrollbar instead and set the thumbColor to whatever color you like.

 RawScrollbar(
                thumbColor: Colors.redAccent,
                radius: Radius.circular(20),
                thickness: 5,
                child: //scrollable widget
                       )
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文