flutterdartnumberpickerflutter-packages

how to select text color of numberpicker in flutter


I'm working on an application and I wanted to use the numberpicker package for flutter. But the default color for the number picker is blue, and I want to change it, how can I do that? Is there any solution for this?


Solution

  • There are two TextStyle

    NumberPicker(
      textStyle: TextStyle(color: Colors.pink),
      selectedTextStyle: TextStyle(color: Colors.amber),
      value: _currentValue,
      minValue: 0,
      maxValue: 100,
      onChanged: (value) => setState(() => _currentValue = value),
    ),
    

    enter image description here