From 79fd04de1a486a0596b0f7bc8d00743c3f8d9273 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Tue, 1 Dec 2015 16:34:41 -0800 Subject: [PATCH] Initialize the track color fields in _RenderSwitch --- packages/flutter/lib/src/material/switch.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/flutter/lib/src/material/switch.dart b/packages/flutter/lib/src/material/switch.dart index 7bc136a856..6b9ef4f1e5 100644 --- a/packages/flutter/lib/src/material/switch.dart +++ b/packages/flutter/lib/src/material/switch.dart @@ -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