Created
December 14, 2019 20:07
-
-
Save GursheeshSingh/9e12bae600b19bd293660571e117da50 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( | |
activeTrackColor: kCoolPurple, | |
inactiveTrackColor: kCoolGray, | |
thumbColor: kCoolPurple, | |
overlayShape: RoundSliderOverlayShape(overlayRadius: 1), | |
), | |
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