Enable sort_child_properties_last lint (#91585)
This commit is contained in:
@@ -16,14 +16,14 @@ class LogoScreen extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
print(_testSentinel);
|
||||
return Container(
|
||||
padding: const EdgeInsets.all(25),
|
||||
color: Colors.blue,
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
const Text('DeferredWidget', key: Key('DeferredWidget')),
|
||||
Image.asset('customassets/flutter_logo.png', key: const Key('DeferredImage')),
|
||||
]
|
||||
),
|
||||
padding: const EdgeInsets.all(25),
|
||||
color: Colors.blue,
|
||||
);
|
||||
}
|
||||
const Text('DeferredWidget', key: Key('DeferredWidget')),
|
||||
Image.asset('customassets/flutter_logo.png', key: const Key('DeferredImage')),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,18 +132,18 @@ class ExampleDragSource extends StatelessWidget {
|
||||
if (heavy) {
|
||||
return LongPressDraggable<Color>(
|
||||
data: color,
|
||||
child: contents,
|
||||
feedback: feedback,
|
||||
feedbackOffset: feedbackOffset,
|
||||
dragAnchorStrategy: dragAnchorStrategy,
|
||||
child: contents,
|
||||
);
|
||||
} else {
|
||||
return Draggable<Color>(
|
||||
data: color,
|
||||
child: contents,
|
||||
feedback: feedback,
|
||||
feedbackOffset: feedbackOffset,
|
||||
dragAnchorStrategy: dragAnchorStrategy,
|
||||
child: contents,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -208,10 +208,10 @@ class MovableBall extends StatelessWidget {
|
||||
if (position == ballPosition) {
|
||||
return Draggable<bool>(
|
||||
data: true,
|
||||
child: ball,
|
||||
childWhenDragging: dashedBall,
|
||||
feedback: ball,
|
||||
maxSimultaneousDrags: 1,
|
||||
child: ball,
|
||||
);
|
||||
} else {
|
||||
return DragTarget<bool>(
|
||||
|
||||
Reference in New Issue
Block a user