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:
committed by
GitHub
parent
361afef305
commit
610955f81d
@@ -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(); },
|
||||
|
||||
@@ -108,7 +108,7 @@ class CardCollectionState extends State<CardCollection> {
|
||||
buildFontRadioItem("Right-align text", TextAlign.right, _textAlign, _changeTextAlign, icon: Icons.format_align_right, enabled: !_editable),
|
||||
new Divider(),
|
||||
new ListTile(
|
||||
leading: new Icon(Icons.dvr),
|
||||
leading: const Icon(Icons.dvr),
|
||||
onTap: () { debugDumpApp(); debugDumpRenderTree(); },
|
||||
title: const Text('Dump App to Console'),
|
||||
),
|
||||
@@ -281,7 +281,7 @@ class CardCollectionState extends State<CardCollection> {
|
||||
}
|
||||
|
||||
// TODO(abarth): This icon is wrong in RTL.
|
||||
Widget leftArrowIcon = new Icon(Icons.arrow_back, size: 36.0);
|
||||
Widget leftArrowIcon = const Icon(Icons.arrow_back, size: 36.0);
|
||||
if (_dismissDirection == DismissDirection.startToEnd)
|
||||
leftArrowIcon = new Opacity(opacity: 0.1, child: leftArrowIcon);
|
||||
|
||||
|
||||
@@ -452,7 +452,7 @@ class _AnimationDemoState extends State<AnimationDemo> with TickerProviderStateM
|
||||
floatingActionButton: new Builder(
|
||||
builder: (BuildContext context) {
|
||||
return new FloatingActionButton(
|
||||
child: new Icon(Icons.refresh),
|
||||
child: const Icon(Icons.refresh),
|
||||
onPressed: () {
|
||||
_play(_allDemos[DefaultTabController.of(context).index]);
|
||||
},
|
||||
|
||||
@@ -92,7 +92,7 @@ class PageViewAppState extends State<PageViewApp> {
|
||||
onTap: switchScrollDirection,
|
||||
),
|
||||
new ListTile(
|
||||
leading: new Icon(Icons.more_vert),
|
||||
leading: const Icon(Icons.more_vert),
|
||||
selected: scrollDirection == Axis.vertical,
|
||||
trailing: const Text('Vertical Layout'),
|
||||
onTap: switchScrollDirection,
|
||||
|
||||
Reference in New Issue
Block a user