Fix newly reported prefer_const_constructors lints. (#54176)

This commit is contained in:
Konstantin Scheglov
2020-04-07 08:59:01 -07:00
committed by GitHub
parent ba18e99d1b
commit b0492cc976
11 changed files with 15 additions and 15 deletions

View File

@@ -108,7 +108,7 @@ class _MyHomePageState extends State<MyHomePage> {
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: Icon(Icons.add),
child: const Icon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}