style(home): compact top-right calendar icon

This commit is contained in:
dwindown
2026-04-03 22:39:45 +07:00
parent af82418c09
commit 13b235cb78

View File

@@ -131,7 +131,6 @@ class MainScreen extends ConsumerWidget {
fs,
timeStr,
secStr,
dateGregorian,
screenData,
schedule,
settings,
@@ -291,10 +290,13 @@ class MainScreen extends ConsumerWidget {
color: SacredColors.surfaceContainerHighest,
shape: BoxShape.circle,
),
child: Padding(
padding: EdgeInsets.all(11 * s * hScale),
child: HugeIcon(
icon: HugeIcons.strokeRoundedHome01,
icon: HugeIcons.strokeRoundedCalendar03,
color: SacredColors.secondary,
size: 28 * s * hScale,
size: 16 * s * hScale,
),
),
),
],
@@ -341,7 +343,6 @@ class MainScreen extends ConsumerWidget {
double fs,
String timeStr,
String secStr,
String dateGregorian,
ScreenStateData screenData,
DailyPrayerSchedule? schedule,
AppSettings settings,
@@ -401,18 +402,9 @@ class MainScreen extends ConsumerWidget {
),
),
SizedBox(height: 16 * s),
Text(
dateGregorian,
style: GoogleFonts.manrope(
fontSize: 24 * fs,
fontWeight: FontWeight.w500,
color: SacredColors.onSurfaceVariant,
letterSpacing: 1 * s,
),
),
if (schedule != null)
Padding(
padding: EdgeInsets.only(top: 24 * s),
padding: EdgeInsets.only(top: 8 * s),
child: _buildSecondaryTimes(s, fs, schedule, settings),
),
],
@@ -601,12 +593,6 @@ class MainScreen extends ConsumerWidget {
'Iqamah ${_addMinutes(schedule.isya, settings.iqomahIsya)}'),
];
// Optionally insert Terbit
if (settings.showTerbit) {
prayers.insert(
1, _PrayerCardData(PrayerName.terbit, schedule.terbit, '-'));
}
return SizedBox(
height: (140 * s * settings.scaleCardBody).clamp(110 * s, 240 * s),
child: Row(