由于iPhone偏移滚动,滑块给我一个错误。如何在iPhone的颤振中禁用偏移滚动。
`
Slider(
key: ValueKey('slider'),
label: "time",
activeColor: Colors.blue,
inactiveColor: Colors.white,
min: 0.0,
max: scrollController.hasClients
? scrollController
.position.maxScrollExtent
: 10000.0,
value: value,
onChanged: (double value) {
scrollController.position
.jumpToWithoutSettling(value);
setState(() => this.value =
value);
},
)
`