From 13b235cb782d7511e4241f17fcea2d2ed2000d3d Mon Sep 17 00:00:00 2001 From: dwindown Date: Fri, 3 Apr 2026 22:39:45 +0700 Subject: [PATCH] style(home): compact top-right calendar icon --- lib/features/home/main_screen.dart | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/lib/features/home/main_screen.dart b/lib/features/home/main_screen.dart index b5ef6d9..6df3f01 100644 --- a/lib/features/home/main_screen.dart +++ b/lib/features/home/main_screen.dart @@ -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: HugeIcon( - icon: HugeIcons.strokeRoundedHome01, - color: SacredColors.secondary, - size: 28 * s * hScale, + child: Padding( + padding: EdgeInsets.all(11 * s * hScale), + child: HugeIcon( + icon: HugeIcons.strokeRoundedCalendar03, + color: SacredColors.secondary, + 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(