add missing type parameter on methods (#22096)
This commit is contained in:
committed by
GitHub
parent
48fb726b01
commit
f62afdcf57
@@ -104,7 +104,7 @@ DropdownButton<String>(
|
||||
});
|
||||
},
|
||||
items: <String>['One', 'Two', 'Free', 'Four']
|
||||
.map((String value) {
|
||||
.map<DropdownMenuItem<String>>((String value) {
|
||||
return DropdownMenuItem<String>(
|
||||
value: value,
|
||||
child: Text(value));
|
||||
@@ -263,7 +263,7 @@ GridView.count(
|
||||
'https://example.com/image-2.jpg',
|
||||
'...',
|
||||
'https://example.com/image-n.jpg'
|
||||
].map((String url) {
|
||||
].map<Widget>((String url) {
|
||||
return GridTile(
|
||||
footer: GridTileBar(
|
||||
title: Text(url)
|
||||
|
||||
Reference in New Issue
Block a user