refactor: Migrate from pathsegment routing
This commit is contained in:
parent
b7dac8365a
commit
b715eff839
15 changed files with 20 additions and 23 deletions
|
|
@ -61,7 +61,7 @@ class ChatListItem extends StatelessWidget {
|
|||
}
|
||||
|
||||
if (room.membership == Membership.leave) {
|
||||
context.go(['', 'archive', room.id].join('/'));
|
||||
context.go('/rooms/archive/${room.id}');
|
||||
}
|
||||
|
||||
if (room.membership == Membership.join) {
|
||||
|
|
@ -86,7 +86,7 @@ class ChatListItem extends StatelessWidget {
|
|||
Matrix.of(context).shareContent = null;
|
||||
}
|
||||
|
||||
context.go(['', 'rooms', room.id].join('/'));
|
||||
context.go('/rooms/${room.id}');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ class _SpaceViewState extends State<SpaceView> {
|
|||
}
|
||||
return;
|
||||
}
|
||||
context.go(['', 'rooms', spaceChild.roomId].join('/'));
|
||||
context.go('/rooms/${spaceChild.roomId}');
|
||||
}
|
||||
|
||||
void _onSpaceChildContextMenu([
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class StoriesHeader extends StatelessWidget {
|
|||
);
|
||||
if (result.error != null) return;
|
||||
}
|
||||
context.go(['', 'stories', roomId].join('/'));
|
||||
context.go('/stories/$roomId');
|
||||
}
|
||||
|
||||
void _contextualActions(BuildContext context, Room room) async {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue