Whenever I tried to add background color to this it hides the selected text. Need Solution
NumberPicker(
value: restDisplayedSec,
minValue: 0,
maxValue: 59,
step: 1,
itemHeight: 30,
selectedTextStyle: const TextStyle(fontSize: 22),
textStyle: const TextStyle(fontSize: 13),
onChanged: (value) => setState(
() {
restDisplayedSec = value;
secLengthRest = restDisplayedSec +
restDisplayedMin *
60; //als Methode weil 2x vorkommt?
},
),
),