zulip-flutter
zulip-flutter copied to clipboard
Add topic-list page
Stacked on top of #1491.
Some non-goals of this change are deferred to #1499. In this implementation, we fetch the topics but do not handle all events to receive live-updates. It's expected that when topics are resolved/unresolved or moved, or when new messages arrived, the changes to the topic-list will not be seen until the next fetch.
We also skip thinning down the app bar, since that will require work on app bars on message-list page too.
The PR is structured to encourage side-by-side comparison with similar existing code. Namely _TopicItem from lib/widgets/inbox.dart and MessageListAppBarTitle.
Fixes: #1158
screenshots (taken on my Android device, hence the left-aligned app bar!)
| light | dark | |
|---|---|---|
| regular | ||
| unsubscribed | ||
| unknown channel |
| small | regular | large |
|---|---|---|
| message-list | channel action sheet |
|---|---|
| non-muted topic | muted topic |
|---|---|
debugDefaultTargetPlatformOverride = TargetPlatform.iOS: