A cross platform Audiobookshelf client for Android and iOS
Dart
Bigger header buttons, centered card percentage
Nathan Poulson8988b588d7d6
diff --git a/lib/screens/absorbing_screen.dart b/lib/screens/absorbing_screen.dartindex 9402c93e..d583e589 100644--- a/lib/screens/absorbing_screen.dart+++ b/lib/screens/absorbing_screen.dart@@ -490,7 +490,7 @@ class _AbsorbingScreenState extends State<AbsorbingScreen> {},child: Icon(effectiveOffline ? Icons.cloud_off_rounded : Icons.cloud_done_rounded,- size: 16, color: effectiveOffline ? Colors.orange : Colors.green,+ size: 20, color: effectiveOffline ? Colors.orange : Colors.green,),),actions: [@@ -508,9 +508,9 @@ class _AbsorbingScreenState extends State<AbsorbingScreen> {child: Row(mainAxisSize: MainAxisSize.min,children: [- Icon(Icons.stop_rounded, size: 14, color: muted),+ Icon(Icons.stop_rounded, size: 18, color: muted),const SizedBox(width: 4),- Text('Stop', style: TextStyle(color: muted, fontSize: 11, fontWeight: FontWeight.w500)),+ Text('Stop', style: TextStyle(color: muted, fontSize: 13, fontWeight: FontWeight.w500)),],),),@@ -531,8 +531,8 @@ class _AbsorbingScreenState extends State<AbsorbingScreen> {border: Border.all(color: subtleBorder),),child: _isSyncing- ? SizedBox(width: 14, height: 14, child: CircularProgressIndicator(strokeWidth: 1.5, color: muted))- : Icon(Icons.refresh_rounded, size: 14, color: muted),+ ? SizedBox(width: 18, height: 18, child: CircularProgressIndicator(strokeWidth: 1.5, color: muted))+ : Icon(Icons.refresh_rounded, size: 18, color: muted),),),if (books.length > 1) ...[@@ -546,7 +546,7 @@ class _AbsorbingScreenState extends State<AbsorbingScreen> {shape: BoxShape.circle,border: Border.all(color: subtleBorder),),- child: Icon(Icons.reorder_rounded, size: 14, color: muted),+ child: Icon(Icons.reorder_rounded, size: 18, color: muted),),),],diff --git a/lib/screens/home_screen.dart b/lib/screens/home_screen.dartindex 41f952c5..b2beba72 100644--- a/lib/screens/home_screen.dart+++ b/lib/screens/home_screen.dart@@ -333,7 +333,7 @@ class _HomeScreenState extends State<HomeScreen> {},child: Icon(lib.isOffline ? Icons.cloud_off_rounded : Icons.cloud_done_rounded,- size: 16, color: lib.isOffline ? Colors.orange : Colors.green,+ size: 20, color: lib.isOffline ? Colors.orange : Colors.green,),),actions: [@@ -362,7 +362,7 @@ class _HomeScreenState extends State<HomeScreen> {lib.isPodcastLibrary? Icons.podcasts_rounded: Icons.auto_stories_rounded,- size: 14,+ size: 18,color: cs.onSurfaceVariant),const SizedBox(width: 6),ConstrainedBox(@@ -370,7 +370,7 @@ class _HomeScreenState extends State<HomeScreen> {const BoxConstraints(maxWidth: 140),child: Text(libraryName,style: TextStyle(- fontSize: 12,+ fontSize: 13,fontWeight: FontWeight.w600,color: cs.onSurfaceVariant),overflow: TextOverflow.ellipsis,@@ -378,7 +378,7 @@ class _HomeScreenState extends State<HomeScreen> {),const SizedBox(width: 4),Icon(Icons.unfold_more_rounded,- size: 14, color: cs.onSurfaceVariant),+ size: 18, color: cs.onSurfaceVariant),],),),diff --git a/lib/screens/library_screen.dart b/lib/screens/library_screen.dartindex 0a1915b7..fdfefad2 100644--- a/lib/screens/library_screen.dart+++ b/lib/screens/library_screen.dart@@ -1011,7 +1011,7 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMi},child: Icon(lib.isOffline ? Icons.cloud_off_rounded : Icons.cloud_done_rounded,- size: 16, color: lib.isOffline ? Colors.orange : Colors.green,+ size: 20, color: lib.isOffline ? Colors.orange : Colors.green,),),actions: hasMultipleLibraries ? [@@ -1027,15 +1027,15 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMichild: Row(mainAxisSize: MainAxisSize.min,children: [- Icon(lib.isPodcastLibrary ? Icons.podcasts_rounded : Icons.auto_stories_rounded, size: 14, color: cs.onSurfaceVariant),+ Icon(lib.isPodcastLibrary ? Icons.podcasts_rounded : Icons.auto_stories_rounded, size: 18, color: cs.onSurfaceVariant),const SizedBox(width: 6),ConstrainedBox(constraints: const BoxConstraints(maxWidth: 140),- child: Text(libraryName, style: TextStyle(fontSize: 12, fontWeight: FontWeight.w600, color: cs.onSurfaceVariant),+ child: Text(libraryName, style: TextStyle(fontSize: 13, fontWeight: FontWeight.w600, color: cs.onSurfaceVariant),overflow: TextOverflow.ellipsis, maxLines: 1),),const SizedBox(width: 4),- Icon(Icons.unfold_more_rounded, size: 14, color: cs.onSurfaceVariant),+ Icon(Icons.unfold_more_rounded, size: 18, color: cs.onSurfaceVariant),],),),diff --git a/lib/widgets/absorbing_card.dart b/lib/widgets/absorbing_card.dartindex 91a15e23..a9d4d75c 100644--- a/lib/widgets/absorbing_card.dart+++ b/lib/widgets/absorbing_card.dart@@ -489,16 +489,20 @@ class AbsorbingCardState extends State<AbsorbingCard> with AutomaticKeepAliveClifontFeatures: const [FontFeature.tabularFigures()],shadows: [Shadow(color: isDark ? Colors.black.withValues(alpha: 0.6) : Colors.white.withValues(alpha: 0.6), blurRadius: 4)],);- return Row(+ return Stack(+ alignment: Alignment.center,children: [- if (_effectiveDuration > 0)- Text(_fmtTime(elapsed), style: timeStyle),- const Spacer(),+ Row(+ children: [+ if (_effectiveDuration > 0)+ Text(_fmtTime(elapsed), style: timeStyle),+ const Spacer(),+ if (_effectiveDuration > 0)+ Text('-${_fmtTime(remaining)}', style: timeStyle),+ ],+ ),Text('${(bookProgress * 100).clamp(0, 100).toStringAsFixed(1)}%',style: timeStyle),- const Spacer(),- if (_effectiveDuration > 0)- Text('-${_fmtTime(remaining)}', style: timeStyle),],);},diff --git a/lib/widgets/expanded_card.dart b/lib/widgets/expanded_card.dartindex 6d6efd5f..79ff11d7 100644--- a/lib/widgets/expanded_card.dart+++ b/lib/widgets/expanded_card.dart@@ -545,16 +545,14 @@ class _ExpandedCardState extends State<ExpandedCard> {// ── Stats row ──Padding(padding: EdgeInsets.fromLTRB(24, compact ? 4 : 12, 24, 0),- child: Row(- children: [- Text('${(bookProgress * 100).clamp(0, 100).toStringAsFixed(1)}%',- style: tt.labelMedium?.copyWith(- color: isDark ? Colors.white.withValues(alpha: 0.95) : Colors.black.withValues(alpha: 0.85),- fontWeight: FontWeight.w800, fontSize: 16,- shadows: [Shadow(color: isDark ? Colors.black.withValues(alpha: 0.6) : Colors.white.withValues(alpha: 0.6), blurRadius: 4)],- )),- const Spacer(),- ],+ child: Center(+ child: Text('${(bookProgress * 100).clamp(0, 100).toStringAsFixed(1)}%',+ style: tt.labelSmall?.copyWith(+ color: isDark ? Colors.white.withValues(alpha: 0.55) : Colors.black.withValues(alpha: 0.45),+ fontWeight: FontWeight.w500, fontSize: compact ? 10 : 11,+ fontFeatures: const [ui.FontFeature.tabularFigures()],+ shadows: [Shadow(color: isDark ? Colors.black.withValues(alpha: 0.6) : Colors.white.withValues(alpha: 0.6), blurRadius: 4)],+ )),),),// ── Book progress bar ──