Created
December 14, 2019 19:57
-
-
Save GursheeshSingh/7fe46b311ddeb2c86f3cb04ebae5f867 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@override | |
Widget build(BuildContext context) { | |
return SliderTheme( | |
data: SliderTheme.of(context).copyWith( | |
thumbShape: RoundSliderThumbShape(enabledThumbRadius: 20) | |
), | |
child: Slider( | |
value: _value, | |
onChanged: (newValue){ | |
setState(() { | |
_value = newValue; | |
}); | |
}, | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment