Skip to content

Commit efe5156

Browse files
committed
WIP inbox: Add "Inbox" page!
TODO (before merge?): - tests - sorting (of streams; and within a stream, of topics) - icons: https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/design.3A.20.23F117.20.22Inbox.22.20screen/near/1680637 (that message, and the next) - currently the whole stream row is tappable to collapse/uncollapse; should we limit that to just the area near the arrow_down/arrow_right, and have the rest of the row open a message list to the stream narrow? - @-mention indicator next to stream/topic unread badge count - helper widgets; code structure etc.? - commit msg. with "fixes" line Other TODOs to be done in later work are noted in the code.
1 parent e70bb6d commit efe5156

File tree

2 files changed

+524
-0
lines changed

2 files changed

+524
-0
lines changed

lib/widgets/app.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import 'package:flutter_gen/gen_l10n/zulip_localizations.dart';
88
import '../model/localizations.dart';
99
import '../model/narrow.dart';
1010
import 'about_zulip.dart';
11+
import 'inbox.dart';
1112
import 'login.dart';
1213
import 'message_list.dart';
1314
import 'page.dart';
@@ -249,6 +250,11 @@ class HomePage extends StatelessWidget {
249250
narrow: const AllMessagesNarrow())),
250251
child: const Text("All messages")),
251252
const SizedBox(height: 16),
253+
ElevatedButton(
254+
onPressed: () => Navigator.push(context,
255+
InboxPage.buildRoute(context: context)),
256+
child: const Text("Inbox")),
257+
const SizedBox(height: 16),
252258
ElevatedButton(
253259
onPressed: () => Navigator.push(context,
254260
RecentDmConversationsPage.buildRoute(context: context)),

0 commit comments

Comments
 (0)