From 7751144c234badeebc7310f08183c51b0b9a1c13 Mon Sep 17 00:00:00 2001 From: jslavitz Date: Fri, 18 Jan 2019 13:13:35 -0800 Subject: [PATCH] Revert switch drag behavior (#26770) --- packages/flutter/lib/src/material/switch.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/material/switch.dart b/packages/flutter/lib/src/material/switch.dart index 183d286a60..70f10dc38f 100644 --- a/packages/flutter/lib/src/material/switch.dart +++ b/packages/flutter/lib/src/material/switch.dart @@ -73,7 +73,7 @@ class Switch extends StatefulWidget { this.activeThumbImage, this.inactiveThumbImage, this.materialTapTargetSize, - this.dragStartBehavior = DragStartBehavior.start, + this.dragStartBehavior = DragStartBehavior.down, }) : _switchType = _SwitchType.material, assert(dragStartBehavior != null), super(key: key); @@ -97,7 +97,7 @@ class Switch extends StatefulWidget { this.activeThumbImage, this.inactiveThumbImage, this.materialTapTargetSize, - this.dragStartBehavior = DragStartBehavior.start, + this.dragStartBehavior = DragStartBehavior.down, }) : _switchType = _SwitchType.adaptive, super(key: key);