feat(offline-first): persist hijri+unsplash cache and scale secondary times
This commit is contained in:
@@ -537,6 +537,8 @@ class MainScreen extends ConsumerWidget {
|
||||
items.add(_SecondaryTimeItem('Terbit', schedule.terbit));
|
||||
}
|
||||
items.add(_SecondaryTimeItem('Dhuha', schedule.dhuha));
|
||||
final labelScale = settings.scaleCardLabel;
|
||||
final bodyScale = settings.scaleCardBody;
|
||||
|
||||
return Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
@@ -547,17 +549,19 @@ class MainScreen extends ConsumerWidget {
|
||||
Text(
|
||||
items[i].label.toUpperCase(),
|
||||
style: GoogleFonts.manrope(
|
||||
fontSize: 10 * fs,
|
||||
// Keep hierarchy smaller than bottom prayer cards, but follow the same scale percentage.
|
||||
fontSize: 10 * fs * labelScale,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: SacredColors.onSurfaceVariant,
|
||||
letterSpacing: 3 * s,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 4 * s),
|
||||
SizedBox(height: 4 * s * bodyScale),
|
||||
Text(
|
||||
items[i].time,
|
||||
style: GoogleFonts.plusJakartaSans(
|
||||
fontSize: 28 * fs,
|
||||
// Keep hierarchy smaller than bottom prayer cards, but follow the same scale percentage.
|
||||
fontSize: 28 * fs * bodyScale,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: SacredColors.onSurface,
|
||||
),
|
||||
@@ -569,7 +573,7 @@ class MainScreen extends ConsumerWidget {
|
||||
padding: EdgeInsets.symmetric(horizontal: 24 * s),
|
||||
child: Container(
|
||||
width: 1,
|
||||
height: 40 * s,
|
||||
height: 40 * s * bodyScale,
|
||||
color: SacredColors.outlineVariant.withValues(alpha: 0.3)),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user