Commit 79fd04de authored by Jason Simmons's avatar Jason Simmons

Initialize the track color fields in _RenderSwitch

parent abf3f1bb
......@@ -110,6 +110,8 @@ class _RenderSwitch extends RenderToggleable {
minRadialReactionRadius: _kThumbRadius,
size: const Size(_kSwitchWidth, _kSwitchHeight)
) {
_activeTrackColor = activeTrackColor;
_inactiveTrackColor = inactiveTrackColor;
_drag = new HorizontalDragGestureRecognizer(router: FlutterBinding.instance.pointerRouter)
..onStart = _handleDragStart
..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