kopia lustrzana https://gitlab.com/mysocialportal/relatica
Merge remote-tracking branch 'refs/remotes/origin/prep-v-1.2.0' into prep-v0.2.0
commit
2660316235
|
@ -71,6 +71,22 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||||
title: Row(
|
title: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
|
if (currentType == TimelineType.group)
|
||||||
|
PopupMenuButton<TimelineType>(
|
||||||
|
initialValue: currentType,
|
||||||
|
// Callback that sets the selected popup menu item.
|
||||||
|
onSelected: (value) {
|
||||||
|
setState(() {
|
||||||
|
currentType = value;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
itemBuilder: (BuildContext context) => types
|
||||||
|
.map((e) => PopupMenuItem<TimelineType>(
|
||||||
|
value: e,
|
||||||
|
child: Text(e.toLabel()),
|
||||||
|
))
|
||||||
|
.toList()),
|
||||||
|
if (currentType != TimelineType.group)
|
||||||
DropdownButton<TimelineType>(
|
DropdownButton<TimelineType>(
|
||||||
value: currentType,
|
value: currentType,
|
||||||
items: types
|
items: types
|
||||||
|
|
Ładowanie…
Reference in New Issue