Untitled
asdsaunknown
plain_text
4 years ago
1.3 kB
6
Indexable
PopupMenuButton(
icon: Icon(Icons.sort),
onSelected: (String str) {
setState(() {
_selectedValue = str;
});
},
itemBuilder: (BuildContext context) {
return <PopupMenuEntry<String>>[
PopupMenuItem(
child: Row(
children: [
Icon(Icons.sort_by_alpha),
Padding(
padding: EdgeInsets.only(left: 12.0),
child: Text('Alfabetik Sıralama'))
],
),
value: 'title',
),
PopupMenuItem(
child: Row(
children: [
Icon(Icons.star_half),
Padding(
padding: EdgeInsets.only(left: 12.0),
child: Text('Puan ile Sıralama'))
],
),
value: 'rating',
),
];
},
)Editor is loading...