upgrade to linter-0.1.30 (#9297)

* upgrade to linter-0.1.30

* add prefer_is_empty lint
* add directives_ordering lint
* add no_adjacent_strings_in_list lint
* add no_duplicate_case_values lint
* add prefer_collection_literals lint
* add prefer_const_constructors lint
* add prefer_contains lint
* add prefer_initializing_formals lint
* add unnecessary_null_aware_assignments lint
* add unnecessary_null_in_if_null_operators lint
This commit is contained in:
Alexandre Ardhuin
2017-04-08 08:43:19 +02:00
committed by GitHub
parent 361afef305
commit 610955f81d
17 changed files with 57 additions and 38 deletions

View File

@@ -60,7 +60,7 @@ class ComplexLayoutState extends State<ComplexLayout> {
title: const Text('Advanced Layout'),
actions: <Widget>[
new IconButton(
icon: new Icon(Icons.create),
icon: const Icon(Icons.create),
tooltip: 'Search',
onPressed: () {
print('Pressed search');
@@ -386,11 +386,11 @@ class ItemImageBox extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.end,
children: <Widget>[
new IconButton(
icon: new Icon(Icons.edit),
icon: const Icon(Icons.edit),
onPressed: () { print('Pressed edit button'); }
),
new IconButton(
icon: new Icon(Icons.zoom_in),
icon: const Icon(Icons.zoom_in),
onPressed: () { print('Pressed zoom button'); }
),
]
@@ -578,7 +578,7 @@ class GalleryDrawer extends StatelessWidget {
children: <Widget>[
new FancyDrawerHeader(),
new ListTile(
leading: new Icon(Icons.brightness_5),
leading: const Icon(Icons.brightness_5),
title: const Text('Light'),
onTap: () { _changeTheme(context, true); },
selected: ComplexLayoutApp.of(context).lightTheme,
@@ -589,7 +589,7 @@ class GalleryDrawer extends StatelessWidget {
),
),
new ListTile(
leading: new Icon(Icons.brightness_7),
leading: const Icon(Icons.brightness_7),
title: const Text('Dark'),
onTap: () { _changeTheme(context, false); },
selected: !ComplexLayoutApp.of(context).lightTheme,
@@ -601,7 +601,7 @@ class GalleryDrawer extends StatelessWidget {
),
new Divider(),
new ListTile(
leading: new Icon(Icons.hourglass_empty),
leading: const Icon(Icons.hourglass_empty),
title: const Text('Animate Slowly'),
selected: timeDilation != 1.0,
onTap: () { ComplexLayoutApp.of(context).toggleAnimationSpeed(); },