How to add background color on number picker Selected text Flutter Dart?

61 Views Asked by At

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?
    },
  ),
),
0

There are 0 best solutions below