Skip to content

Instantly share code, notes, and snippets.

@GursheeshSingh
Created December 14, 2019 19:57
Show Gist options
  • Save GursheeshSingh/7fe46b311ddeb2c86f3cb04ebae5f867 to your computer and use it in GitHub Desktop.
Save GursheeshSingh/7fe46b311ddeb2c86f3cb04ebae5f867 to your computer and use it in GitHub Desktop.
@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