re-order room menu items
This commit is contained in:
parent
3e8eba0872
commit
dc1eb52fe0
1 changed files with 10 additions and 10 deletions
|
|
@ -18,6 +18,16 @@ class RoomMenu extends ConsumerWidget {
|
||||||
|
|
||||||
return PopupMenuButton(
|
return PopupMenuButton(
|
||||||
itemBuilder: (_) => [
|
itemBuilder: (_) => [
|
||||||
|
PopupMenuItem(
|
||||||
|
onTap: () async {
|
||||||
|
await client.markRead(room);
|
||||||
|
await Future.wait(children.map((child) => client.markRead(child)));
|
||||||
|
},
|
||||||
|
child: ListTile(
|
||||||
|
leading: Icon(Icons.check),
|
||||||
|
title: Text("Mark as Read"),
|
||||||
|
),
|
||||||
|
),
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
final vias = ref.watch(ViaController.provider(room));
|
final vias = ref.watch(ViaController.provider(room));
|
||||||
|
|
@ -30,16 +40,6 @@ class RoomMenu extends ConsumerWidget {
|
||||||
},
|
},
|
||||||
child: ListTile(leading: Icon(Icons.link), title: Text("Copy Link")),
|
child: ListTile(leading: Icon(Icons.link), title: Text("Copy Link")),
|
||||||
),
|
),
|
||||||
PopupMenuItem(
|
|
||||||
onTap: () async {
|
|
||||||
await client.markRead(room);
|
|
||||||
await Future.wait(children.map((child) => client.markRead(child)));
|
|
||||||
},
|
|
||||||
child: ListTile(
|
|
||||||
leading: Icon(Icons.check),
|
|
||||||
title: Text("Mark as Read"),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
onTap: () => showDialog(
|
onTap: () => showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue