some whitespace cleanup (#14443)
This commit is contained in:
committed by
GitHub
parent
688a571c71
commit
c02b6a8bcf
@@ -295,12 +295,12 @@ class CardCollectionState extends State<CardCollection> {
|
||||
}
|
||||
|
||||
// TODO(abarth): This icon is wrong in RTL.
|
||||
Widget leftArrowIcon = const Icon(Icons.arrow_back, size: 36.0);
|
||||
Widget leftArrowIcon = const Icon(Icons.arrow_back, size: 36.0);
|
||||
if (_dismissDirection == DismissDirection.startToEnd)
|
||||
leftArrowIcon = new Opacity(opacity: 0.1, child: leftArrowIcon);
|
||||
|
||||
// TODO(abarth): This icon is wrong in RTL.
|
||||
Widget rightArrowIcon = const Icon(Icons.arrow_forward, size: 36.0);
|
||||
Widget rightArrowIcon = const Icon(Icons.arrow_forward, size: 36.0);
|
||||
if (_dismissDirection == DismissDirection.endToStart)
|
||||
rightArrowIcon = new Opacity(opacity: 0.1, child: rightArrowIcon);
|
||||
|
||||
|
||||
@@ -27,17 +27,17 @@ class _DragHandler extends Drag {
|
||||
final GestureDragEndCallback onEnd;
|
||||
|
||||
@override
|
||||
void update(DragUpdateDetails details) {
|
||||
void update(DragUpdateDetails details) {
|
||||
onUpdate(details);
|
||||
}
|
||||
|
||||
@override
|
||||
void cancel() {
|
||||
void cancel() {
|
||||
onCancel();
|
||||
}
|
||||
|
||||
@override
|
||||
void end(DragEndDetails details) {
|
||||
void end(DragEndDetails details) {
|
||||
onEnd(details);
|
||||
}
|
||||
}
|
||||
@@ -152,7 +152,7 @@ class _PointDemoState extends State<_PointDemo> {
|
||||
return new _DragHandler(_handleDragUpdate, _handleDragCancel, _handleDragEnd);
|
||||
}
|
||||
|
||||
void _handleDragUpdate(DragUpdateDetails details) {
|
||||
void _handleDragUpdate(DragUpdateDetails details) {
|
||||
switch (_dragTarget) {
|
||||
case _DragTarget.start:
|
||||
setState(() {
|
||||
@@ -167,12 +167,12 @@ class _PointDemoState extends State<_PointDemo> {
|
||||
}
|
||||
}
|
||||
|
||||
void _handleDragCancel() {
|
||||
void _handleDragCancel() {
|
||||
_dragTarget = null;
|
||||
widget.controller.value = 0.0;
|
||||
}
|
||||
|
||||
void _handleDragEnd(DragEndDetails details) {
|
||||
void _handleDragEnd(DragEndDetails details) {
|
||||
_dragTarget = null;
|
||||
}
|
||||
|
||||
@@ -319,7 +319,7 @@ class _RectangleDemoState extends State<_RectangleDemo> {
|
||||
return new _DragHandler(_handleDragUpdate, _handleDragCancel, _handleDragEnd);
|
||||
}
|
||||
|
||||
void _handleDragUpdate(DragUpdateDetails details) {
|
||||
void _handleDragUpdate(DragUpdateDetails details) {
|
||||
switch (_dragTarget) {
|
||||
case _DragTarget.start:
|
||||
setState(() {
|
||||
@@ -334,12 +334,12 @@ class _RectangleDemoState extends State<_RectangleDemo> {
|
||||
}
|
||||
}
|
||||
|
||||
void _handleDragCancel() {
|
||||
void _handleDragCancel() {
|
||||
_dragTarget = null;
|
||||
widget.controller.value = 0.0;
|
||||
}
|
||||
|
||||
void _handleDragEnd(DragEndDetails details) {
|
||||
void _handleDragEnd(DragEndDetails details) {
|
||||
_dragTarget = null;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class _HardwareKeyDemoState extends State<RawKeyboardDemo> {
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
Widget build(BuildContext context) {
|
||||
final TextTheme textTheme = Theme.of(context).textTheme;
|
||||
return new RawKeyboardListener(
|
||||
focusNode: _focusNode,
|
||||
|
||||
Reference in New Issue
Block a user