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