我在我的应用程序中实现了数字选择器。我想修改数字的大小以及高亮值和未高亮值的颜色。我通过将其包装在Theme小部件中并修改accentcolor来修改高亮值,但不知道如何进行其他自定义修改?
Theme(
data: Theme.of(context).copyWith(
accentColor: Colors.red,
),
child: NumberPicker.integer(
initialValue: _currentPickerValue,
minValue: 0,
maxValue: 100,
onChanged: (newValue) =>
setState(() => _currentPickerValue = newValue)))