feat: Implement new space view
This commit is contained in:
parent
a6a18d34f6
commit
971d5b25fb
6 changed files with 156 additions and 9 deletions
|
|
@ -24,7 +24,14 @@ import 'package:flutter_gen/gen_l10n/l10n.dart';
|
|||
import 'bootstrap_dialog.dart';
|
||||
|
||||
enum SelectMode { normal, share, select }
|
||||
enum PopupMenuAction { settings, invite, newGroup, setStatus, archive }
|
||||
enum PopupMenuAction {
|
||||
settings,
|
||||
invite,
|
||||
newGroup,
|
||||
newSpace,
|
||||
setStatus,
|
||||
archive,
|
||||
}
|
||||
|
||||
class ChatList extends StatefulWidget {
|
||||
const ChatList({Key key}) : super(key: key);
|
||||
|
|
@ -248,6 +255,9 @@ class ChatListController extends State<ChatList> {
|
|||
case PopupMenuAction.newGroup:
|
||||
VRouter.of(context).to('/newgroup');
|
||||
break;
|
||||
case PopupMenuAction.newSpace:
|
||||
VRouter.of(context).to('/newspace');
|
||||
break;
|
||||
case PopupMenuAction.archive:
|
||||
VRouter.of(context).to('/archive');
|
||||
break;
|
||||
|
|
@ -294,11 +304,3 @@ class ChatListController extends State<ChatList> {
|
|||
return ChatListView(this);
|
||||
}
|
||||
}
|
||||
|
||||
enum ChatListPopupMenuItemActions {
|
||||
createGroup,
|
||||
discover,
|
||||
setStatus,
|
||||
inviteContact,
|
||||
settings,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue