skip to Main Content

Flutter – My slider have value well changed , but cant move it , or cant display changes

@override Widget build(BuildContext context) { double currentSliderValue = 100.0; return Scaffold( appBar: AppBar( backgroundColor: Theme.of(context).colorScheme.inversePrimary, title: Text(widget.title), ), body: Slider( value: currentSliderValue, onChanged: (double value) { setState(() { currentSliderValue = value; }); }, label: '$currentSliderValue', ), ), ); } }…

VIEW QUESTION
Back To Top
Search