Redesign
This commit is contained in:
parent
f2b0cce282
commit
cc61d8e91a
13 changed files with 590 additions and 226 deletions
|
|
@ -37,7 +37,7 @@ class _NewGroupDialogState extends State<NewGroupDialog> {
|
|||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) {
|
||||
return Chat(roomID);
|
||||
return ChatView(roomID);
|
||||
}),
|
||||
),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ class _NewPrivateChatDialogState extends State<NewPrivateChatDialog> {
|
|||
if (roomID != null) {
|
||||
await Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => Chat(roomID)),
|
||||
MaterialPageRoute(builder: (context) => ChatView(roomID)),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ class ChatListItem extends StatelessWidget {
|
|||
}
|
||||
await Navigator.pushAndRemoveUntil(
|
||||
context,
|
||||
AppRoute.defaultRoute(context, Chat(room.id)),
|
||||
AppRoute.defaultRoute(context, ChatView(room.id)),
|
||||
(r) => r.isFirst,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class ParticipantListItem extends StatelessWidget {
|
|||
await Navigator.of(context).pushAndRemoveUntil(
|
||||
AppRoute.defaultRoute(
|
||||
context,
|
||||
Chat(roomId),
|
||||
ChatView(roomId),
|
||||
),
|
||||
(Route r) => r.isFirst);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ class MatrixState extends State<Matrix> {
|
|||
await Navigator.of(context).pushAndRemoveUntil(
|
||||
AppRoute.defaultRoute(
|
||||
context,
|
||||
Chat(roomId),
|
||||
ChatView(roomId),
|
||||
),
|
||||
(r) => r.isFirst);
|
||||
} catch (_) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue