apply partially the upcoming unnecessary_lambdas (#8810)
This commit is contained in:
committed by
GitHub
parent
f9ad230f15
commit
2166ea5b7f
@@ -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,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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>>[
|
||||
|
||||
@@ -183,9 +183,7 @@ class CalculationManager {
|
||||
onProgressListener: (double completed, double total) {
|
||||
sender.send(<double>[ completed, total ]);
|
||||
},
|
||||
onResultListener: (String result) {
|
||||
sender.send(result);
|
||||
},
|
||||
onResultListener: sender.send,
|
||||
data: message.data
|
||||
);
|
||||
calculator.run();
|
||||
|
||||
@@ -24,7 +24,7 @@ class _NotImplementedDialog extends StatelessWidget {
|
||||
content: new Text('This feature has not yet been implemented.'),
|
||||
actions: <Widget>[
|
||||
new FlatButton(
|
||||
onPressed: () { debugDumpApp(); },
|
||||
onPressed: debugDumpApp,
|
||||
child: new Row(
|
||||
children: <Widget>[
|
||||
new Icon(
|
||||
|
||||
@@ -105,7 +105,7 @@ class StockSettingsState extends State<StockSettings> {
|
||||
final List<Widget> rows = <Widget>[
|
||||
new DrawerItem(
|
||||
icon: new Icon(Icons.thumb_up),
|
||||
onPressed: () => _confirmOptimismChange(),
|
||||
onPressed: _confirmOptimismChange,
|
||||
child: new Row(
|
||||
children: <Widget>[
|
||||
new Expanded(child: new Text('Everything is awesome')),
|
||||
|
||||
Reference in New Issue
Block a user