You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The design for the main menu and bottom nav bar (#1035) calls for showing message counts on many of the items: the number of unread DMs on the DMs item, the number of starred messages on the "Starred messages" item, and so on. This issue is for adding that feature.
Screenshot
Implementation
The exact semantics of whether a given item has a number shown on it, and what that number should be, should match the web app's left sidebar.
For computing the values to be shown: generally we should avoid doing significant computation in the widgets' build methods. Instead, use the Unreads model, or potentially introduce a view-model for efficiently maintaining whatever additional information we might need for some of these items.
Maybe a good structure for that is a method like Widget? buildTrailing(BuildContext context) [on the _MenuButton class in lib/widgets/home.dart]. Then most subclasses will return a _MenuItemCounter, or null; but e.g. the "Notifications" row (in the future! […]) can return that yellow warning icon.
The text was updated successfully, but these errors were encountered:
gnprice
added
a-home
The home screens of the app; finding and starting conversations
a-model
Implementing our data model (PerAccountStore, etc.)
labels
Nov 26, 2024
The design for the main menu and bottom nav bar (#1035) calls for showing message counts on many of the items: the number of unread DMs on the DMs item, the number of starred messages on the "Starred messages" item, and so on. This issue is for adding that feature.
Screenshot
Implementation
The exact semantics of whether a given item has a number shown on it, and what that number should be, should match the web app's left sidebar.
For computing the values to be shown: generally we should avoid doing significant computation in the widgets' build methods. Instead, use the
Unreads
model, or potentially introduce a view-model for efficiently maintaining whatever additional information we might need for some of these items.For how to organize this feature in the widgets code:
The text was updated successfully, but these errors were encountered: