Ham*_*bah 5 user-interface user-experience material-design material-ui flutter
左边是旧材质设计的发光效果。
正确的是新材料设计具有的拉伸效果。
在Material小部件中,将 theme 属性设置为:
theme: ThemeData().copyWith(
useMaterial3: true,
colorScheme: ColorScheme.fromSeed(
seedColor: Colors.red,
),
),
Run Code Online (Sandbox Code Playgroud)
小智 3
禁止指标对我有用(发光也会消失)。
NotificationListener<OverscrollIndicatorNotification>(
onNotification: (OverscrollIndicatorNotification overscroll) {
overscroll.disallowIndicator();
return false;
},
child: ListView.builder(
...
),
),
Run Code Online (Sandbox Code Playgroud)
或者尝试ScrollConfiguration(可能需要热重启)
ScrollConfiguration(
behavior: ScrollBehavior(),
child: ListView(
...
),
),
Run Code Online (Sandbox Code Playgroud)
参考文献:
| 归档时间: |
|
| 查看次数: |
1699 次 |
| 最近记录: |