Skip to content

Commit

Permalink
update color
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavilien committed Jan 28, 2025
1 parent dd3d807 commit 30315dd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/pages/checkin_qr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ class _QRPageState extends State<QRPage> {
dietaryRestrictions = "Dietary restrictions: ${userData.dietaryRestrictions!.join(', ')}";
}

Color dietaryRestrictionsColor;
if (userData.dietaryRestrictions!.isEmpty) {
dietaryRestrictionsColor = const Color(0xFFF7F1E2);
} else {
dietaryRestrictionsColor = const Color(0xFFFF70A1);
}

return DefaultPage(
backflag: true,
reverse: true,
Expand All @@ -69,7 +76,7 @@ class _QRPageState extends State<QRPage> {
style: Theme.of(context)
.textTheme
.displaySmall
?.copyWith(color: const Color(0xFFFF70A1)),
?.copyWith(color: dietaryRestrictionsColor),
),
QREnlarged(
onPressed: () async {
Expand Down

0 comments on commit 30315dd

Please sign in to comment.