Skip to content

Commit 7b2db36

Browse files
committed
Fix lints in animations example
Removes `const` from `Text` widgets inside a `Row` that was not itself `const`, and adds `const` to the `Row` itself.
1 parent 57f7be9 commit 7b2db36

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/animations/example/lib/shared_axis_transition.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,21 +81,21 @@ class _SharedAxisTransitionDemoState extends State<SharedAxisTransitionDemo> {
8181
onChanged: (SharedAxisTransitionType? newValue) {
8282
_updateTransitionType(newValue);
8383
},
84-
child: Row(
84+
child: const Row(
8585
mainAxisAlignment: MainAxisAlignment.center,
8686
children: <Widget>[
8787
Radio<SharedAxisTransitionType>(
8888
value: SharedAxisTransitionType.horizontal,
8989
),
90-
const Text('X'),
90+
Text('X'),
9191
Radio<SharedAxisTransitionType>(
9292
value: SharedAxisTransitionType.vertical,
9393
),
94-
const Text('Y'),
94+
Text('Y'),
9595
Radio<SharedAxisTransitionType>(
9696
value: SharedAxisTransitionType.scaled,
9797
),
98-
const Text('Z'),
98+
Text('Z'),
9999
],
100100
),
101101
),

0 commit comments

Comments
 (0)