Skip to content

Commit

Permalink
WIP inbox: Add "Inbox" page!
Browse files Browse the repository at this point in the history
TODO before merge:

- tests
- commit msg. with "fixes" line

Other TODOs to be done in later work are noted in the code.
  • Loading branch information
chrisbobbe committed Nov 16, 2023
1 parent 0c44b5f commit 3b53e6d
Show file tree
Hide file tree
Showing 3 changed files with 497 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/widgets/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:flutter_gen/gen_l10n/zulip_localizations.dart';
import '../model/localizations.dart';
import '../model/narrow.dart';
import 'about_zulip.dart';
import 'inbox.dart';
import 'login.dart';
import 'message_list.dart';
import 'page.dart';
Expand Down Expand Up @@ -254,6 +255,11 @@ class HomePage extends StatelessWidget {
narrow: const AllMessagesNarrow())),
child: const Text("All messages")),
const SizedBox(height: 16),
ElevatedButton(
onPressed: () => Navigator.push(context,
InboxPage.buildRoute(context: context)),
child: const Text("Inbox")), // TODO(i18n)
const SizedBox(height: 16),
ElevatedButton(
onPressed: () => Navigator.push(context,
RecentDmConversationsPage.buildRoute(context: context)),
Expand Down
Loading

0 comments on commit 3b53e6d

Please sign in to comment.