Revert switch drag behavior (#26770)

This commit is contained in:
jslavitz
2019-01-18 13:13:35 -08:00
committed by GitHub
parent 43bf66a9ab
commit 7751144c23

View File

@@ -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);