1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00

Upgrading samples to flutter_lints, part 1 of n (#804)

This commit is contained in:
Brett Morgan
2021-06-05 12:24:28 +10:00
committed by GitHub
parent 14921d0c06
commit 936d1fdaae
230 changed files with 2361 additions and 2444 deletions

View File

@@ -29,7 +29,7 @@ class _MethodChannelDemoState extends State<MethodChannelDemo> {
'Value of count is $count',
style: Theme.of(context).textTheme.headline5,
),
SizedBox(
const SizedBox(
height: 16,
),
Row(
@@ -49,8 +49,8 @@ class _MethodChannelDemoState extends State<MethodChannelDemo> {
);
}
},
icon: Icon(Icons.add),
label: Text('Increment'),
icon: const Icon(Icons.add),
label: const Text('Increment'),
),
// Whenever users press the ElevatedButton, it invokes
@@ -67,8 +67,8 @@ class _MethodChannelDemoState extends State<MethodChannelDemo> {
);
}
},
icon: Icon(Icons.remove),
label: Text('Decrement'),
icon: const Icon(Icons.remove),
label: const Text('Decrement'),
)
],
)