如何在SingleChildScrollView
中更改滚动条指示符的颜色,SingleChildScrollView
没有选项颜色或样式,如果不能更改SingleChildScrollView
的颜色,我们有其他选择吗?
发布于 2022-08-28 11:31:48
试试这个:
RawScrollbar(
thumbColor: Colors.red,
radius: Radius.circular(16),
thickness: 7,
child: SingleChildScrollView()
)
发布于 2022-08-28 11:23:45
您可以通过包装ScrollbarThemeData:thumbColor
来提供SingleChildScrollView
Theme(
data: Theme.of(context).copyWith(
scrollbarTheme: ScrollbarThemeData(
thumbColor: MaterialStateProperty.all(Colors.red),
)),
child: SingleChildScrollView(
https://stackoverflow.com/questions/73518191
复制相似问题