enable lint unnecessary_const (#19342)
This commit is contained in:
committed by
GitHub
parent
d10e46ea65
commit
cc1cf13eec
@@ -30,7 +30,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
static const String _pong = 'pong';
|
||||
static const String _emptyMessage = '';
|
||||
static const BasicMessageChannel<String> platform =
|
||||
const BasicMessageChannel<String>(_channel, const StringCodec());
|
||||
BasicMessageChannel<String>(_channel, StringCodec());
|
||||
|
||||
int _counter = 0;
|
||||
|
||||
@@ -69,7 +69,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
child: new Row(
|
||||
children: <Widget>[
|
||||
new Image.asset('assets/flutter-mark-square-64.png', scale: 1.5),
|
||||
const Text('Flutter', style: const TextStyle(fontSize: 30.0)),
|
||||
const Text('Flutter', style: TextStyle(fontSize: 30.0)),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user