Skip to content

Commit

Permalink
💄 (Timetable page) Fix appbar image & text colour & contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
iqfareez committed Oct 10, 2024
1 parent ba8a1e6 commit ad14480
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/views/prayer_full_table.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ class PrayerFullTable extends StatelessWidget {
headerSliverBuilder: (_, innerboxIsScrolled) {
return <Widget>[
SliverAppBar(
foregroundColor: Colors.white,
backgroundColor: Theme.of(context).colorScheme.primary,
foregroundColor: Theme.of(context).colorScheme.onPrimaryContainer,
backgroundColor: Theme.of(context).colorScheme.primaryContainer,
pinned: true,
expandedHeight: 150,
flexibleSpace: FlexibleSpaceBar(
Expand All @@ -68,13 +68,19 @@ class PrayerFullTable extends StatelessWidget {
.toString(),
fit: BoxFit.cover,
color: Colors.black.withOpacity(0.7),
colorBlendMode: BlendMode.overlay,
colorBlendMode: switch (Theme.of(context).brightness) {
Brightness.light => BlendMode.dstATop,
Brightness.dark => BlendMode.multiply,
},
),
centerTitle: true,
title: Text(
'${AppLocalizations.of(context)?.timetableTitle(DateAndTime.monthName(_month, AppLocalizations.of(context)!.localeName))} ($_locationCode)',
textAlign: TextAlign.center,
style: const TextStyle(fontWeight: FontWeight.bold)),
style: TextStyle(
fontWeight: FontWeight.bold,
color: Theme.of(context).colorScheme.onPrimaryContainer,
)),
),
actions: [
IconButton(
Expand Down

1 comment on commit ad14480

@iqfareez
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshots;

Image

Image

Please sign in to comment.