apply partially the upcoming unnecessary_lambdas (#8810)

This commit is contained in:
Alexandre Ardhuin
2017-03-15 23:09:58 +01:00
committed by GitHub
parent f9ad230f15
commit 2166ea5b7f
33 changed files with 71 additions and 143 deletions

View File

@@ -386,7 +386,7 @@ class _AnimationDemoHomeState extends State<AnimationDemoHome> {
backgroundColor: _kAppBackgroundColor,
body: new Builder(
// Insert an element so that _buildBody can find the PrimaryScrollController.
builder: (BuildContext context) => _buildBody(context),
builder: _buildBody,
),
);
}

View File

@@ -108,9 +108,7 @@ class ShrinePageState extends State<ShrinePage> {
new IconButton(
icon: new Icon(Icons.shopping_cart),
tooltip: 'Shopping cart',
onPressed: () {
_showShoppingCart();
}
onPressed: _showShoppingCart
),
new PopupMenuButton<ShrineAction>(
itemBuilder: (BuildContext context) => <PopupMenuItem<ShrineAction>>[