Merge commit '72128d53685269ff1e13d2c76c80b6276f7635ba' into sticky-section-clip

This commit is contained in:
2026-11-01 01:50:32 +00:00
5 changed files with 212 additions and 10 deletions
+17 -7
View File
@@ -39,6 +39,7 @@ class AppListRow extends StatelessWidget {
required this.title,
this.leading,
this.time,
this.timeWidget,
this.subtitle,
this.compactSubtitle,
this.subtitleLeading,
@@ -59,6 +60,7 @@ class AppListRow extends StatelessWidget {
final Widget title;
final Widget? leading;
final String? time;
final Widget? timeWidget;
final Widget? subtitle;
/// Replaces [subtitle] in a compact row, which has less room for facts.
@@ -204,17 +206,25 @@ class AppListRow extends StatelessWidget {
child: title,
),
),
if (!compact && time != null && time!.isNotEmpty)
if (!compact &&
(timeWidget != null || (time != null && time!.isNotEmpty)))
ConstrainedBox(
constraints: BoxConstraints(maxWidth: constraints.maxWidth * 0.4),
child: Padding(
padding: const EdgeInsetsDirectional.only(start: 8),
child: Text(
time!,
style: styles.time,
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
child: timeWidget == null
? Text(
time!,
style: styles.time,
maxLines: 1,
overflow: TextOverflow.ellipsis,
)
: DefaultTextStyle(
style: styles.time,
maxLines: 1,
overflow: TextOverflow.ellipsis,
child: timeWidget!,
),
),
),
],