feat: Add experimental todo list for rooms
This commit is contained in:
parent
f028b12185
commit
b2d3b32ba8
7 changed files with 528 additions and 1 deletions
|
|
@ -63,6 +63,16 @@ class ChatSettingsPopupMenuState extends State<ChatSettingsPopupMenu> {
|
|||
],
|
||||
),
|
||||
),
|
||||
PopupMenuItem<String>(
|
||||
value: 'todos',
|
||||
child: Row(
|
||||
children: [
|
||||
const Icon(Icons.task_alt_outlined),
|
||||
const SizedBox(width: 12),
|
||||
Text(L10n.of(context)!.todoLists),
|
||||
],
|
||||
),
|
||||
),
|
||||
PopupMenuItem<String>(
|
||||
value: 'leave',
|
||||
child: Row(
|
||||
|
|
@ -137,6 +147,9 @@ class ChatSettingsPopupMenuState extends State<ChatSettingsPopupMenu> {
|
|||
widget.room.setPushRuleState(PushRuleState.notify),
|
||||
);
|
||||
break;
|
||||
case 'todos':
|
||||
context.go('/rooms/${widget.room.id}/tasks');
|
||||
break;
|
||||
case 'details':
|
||||
_showChatDetails();
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue