Commit 3fe160d8 authored by Jason Simmons's avatar Jason Simmons

Merge pull request #661 from jason-simmons/switch_track_color

Initialize the track color fields in _RenderSwitch
parents bbd84bce 79fd04de
...@@ -110,6 +110,8 @@ class _RenderSwitch extends RenderToggleable { ...@@ -110,6 +110,8 @@ class _RenderSwitch extends RenderToggleable {
minRadialReactionRadius: _kThumbRadius, minRadialReactionRadius: _kThumbRadius,
size: const Size(_kSwitchWidth, _kSwitchHeight) size: const Size(_kSwitchWidth, _kSwitchHeight)
) { ) {
_activeTrackColor = activeTrackColor;
_inactiveTrackColor = inactiveTrackColor;
_drag = new HorizontalDragGestureRecognizer(router: FlutterBinding.instance.pointerRouter) _drag = new HorizontalDragGestureRecognizer(router: FlutterBinding.instance.pointerRouter)
..onStart = _handleDragStart ..onStart = _handleDragStart
..onUpdate = _handleDragUpdate ..onUpdate = _handleDragUpdate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment