feat: Add experimental todo list for rooms

This commit is contained in:
krille-chan 2023-10-28 20:40:14 +02:00
commit b2d3b32ba8
No known key found for this signature in database
7 changed files with 528 additions and 1 deletions

View file

@ -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;