Resize chat list into compact rail and animate visible chat markers

This commit is contained in:
2026-11-07 13:20:12 +00:00
parent 19958e81c5
commit e2cfa90776
20 changed files with 555 additions and 173 deletions
+10 -2
View File
@@ -74,6 +74,7 @@ class AppListRow extends StatelessWidget {
this.compactWidth = kAppListRowCompactWidth,
this.cupertino,
this.accent,
this.showAccentBorder = true,
});
/// The item's own colour (a chat's highlight): a bar on the row's leading
@@ -81,6 +82,9 @@ class AppListRow extends StatelessWidget {
/// marks the open row, so the two never read as one another.
final Color? accent;
/// Retain identity tint while a feature supplies its own visibility marker.
final bool showAccentBorder;
final Widget title;
final Widget? leading;
final String? time;
@@ -192,7 +196,7 @@ class AppListRow extends StatelessWidget {
// The colour bar runs the row's whole height, divider included, and
// the tint fills the divider's inset too, so coloured rows read as
// one band each.
Widget marked(Widget row) => accent == null
Widget marked(Widget row) => accent == null || !showAccentBorder
? row
: DecoratedBox(
key: appListRowAccentKey,
@@ -291,7 +295,11 @@ class AppListRow extends StatelessWidget {
return Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [titleLine, const SizedBox(height: _lineGap), timeLine],
children: [
titleLine,
const SizedBox(height: _lineGap),
timeLine,
],
);
}
return Column(