Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Show total series duration in series sheet subtitle

Nathan Poulson19aafd11bf91
diff --git a/lib/widgets/series_books_sheet.dart b/lib/widgets/series_books_sheet.dart
index c9687f58..c4b34619 100644
--- a/lib/widgets/series_books_sheet.dart
+++ b/lib/widgets/series_books_sheet.dart
@@ -396,7 +396,8 @@ class _SeriesBooksSheetState extends State<SeriesBooksSheet> {
Padding(
padding: EdgeInsets.fromLTRB(24, 0, 24, seriesProgress > 0 ? 4 : 12),
child: Text(
- '${_books.length} book${_books.length != 1 ? 's' : ''} in this series',
+ '${_books.length} book${_books.length != 1 ? 's' : ''} in this series'
+ '${totalDuration > 0 ? ' · ${_formatDuration(totalDuration)}' : ''}',
style: tt.bodySmall?.copyWith(color: cs.onSurfaceVariant),
),
),