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:
@@ -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'),
|
||||
)
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user