Skip to content

Commit

Permalink
fix: navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
henri2h committed Feb 9, 2025
1 parent 42b3a8c commit f2a8451
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/features/chat/widgets/room_list/room_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,8 @@ class _RoomListState extends State<RoomList> {
await context
.pushRoute(CreateChatRoute(onRoomSelected: onSelection));
}

},
child: const Icon(Icons.message),
child: Icon(isTodo ? Icons.task : Icons.message),
)
: null,
appBar: selectMode == true
Expand Down
4 changes: 3 additions & 1 deletion lib/router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ class AppRouter extends RootStackRouter {
AutoRoute(path: 'space', page: RoomRoute.page),
AutoRoute(path: 'space/:spaceId', page: SpaceRoute.page),
AutoRoute(path: ':id', page: RoomRoute.page),
AutoRoute(path: 'settings', page: RoomSettingsRoute.page)
AutoRoute(path: 'settings', page: RoomSettingsRoute.page),
AutoRoute(page: CreateChatRoute.page),
AutoRoute(page: TodoListAddRoute.page)
];

static List<AutoRoute> todoRoutes = [
Expand Down

0 comments on commit f2a8451

Please sign in to comment.