6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 81d22a06
Changed files
.../lib/my_booking/my_booking_page.dart | 48 ++++++++++++++-------- 1 file changed, 32 insertions(+), 16 deletions(-)
Diff
diff --git a/comwell_key_app/lib/my_booking/my_booking_page.dart b/comwell_key_app/lib/my_booking/my_booking_page.dart
index 95db6ffe..165c759a 100644
--- a/comwell_key_app/lib/my_booking/my_booking_page.dart
+++ b/comwell_key_app/lib/my_booking/my_booking_page.dart
@@ -35,14 +35,14 @@ class MyBookingPage extends StatelessWidget {
'my_booking'.tr(),
style: theme.textTheme.titleLarge?.copyWith(
fontWeight: FontWeight.bold,
- color: Colors.black.withOpacity(0.65),
+ color: Colors.black,
),
),
const SizedBox(height: 8),
Text(
'booking_reference'.tr(),
- style: theme.textTheme.bodyMedium?.copyWith(
- color: Colors.grey[600],
+ style: theme.textTheme.bodySmall?.copyWith(
+ color: Colors.black.withValues(alpha: 0.65),
),
),
Text(
@@ -111,7 +111,9 @@ class MyBookingPage extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
- Text('check_in'.tr(), style: theme.textTheme.titleMedium),
+ Text('check_in'.tr(), style: theme.textTheme.bodySmall?.copyWith(
+ color: Colors.black.withValues(alpha: 0.65),
+ )),
const SizedBox(height: 4),
Text(DateFormat('d. MMM').format(booking.startDate),
style: theme.textTheme.bodyMedium),
@@ -125,7 +127,9 @@ class MyBookingPage extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
- Text('check_out'.tr(), style: theme.textTheme.titleMedium),
+ Text('check_out'.tr(), style: theme.textTheme.bodySmall?.copyWith(
+ color: Colors.black.withValues(alpha: 0.65),
+ )),
const SizedBox(height: 4),
Text(
DateFormat('d. MMM').format(booking.endDate),
@@ -147,13 +151,17 @@ class MyBookingPage extends StatelessWidget {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
- Text('booking_details'.tr(), style: theme.textTheme.titleMedium),
+ Text('booking_details'.tr(), style: theme.textTheme.bodySmall?.copyWith(
+ color: Colors.black.withValues(alpha: 0.65),
+ )),
Text(booking.roomType, style: theme.textTheme.bodyMedium),
const SizedBox(height: 16),
const Divider(color: colorDivider),
Text(
'number_of_guests'.tr(),
- style: theme.textTheme.titleMedium,
+ style: theme.textTheme.bodySmall?.copyWith(
+ color: Colors.black.withValues(alpha: 0.65),
+ ),
),
Text(
'${booking.adults} ${booking.adults > 1 ? 'adults'.tr() : 'adult'.tr()}${booking.children > 0 ? ' | ${booking.children} ${booking.children > 1 ? 'children'.tr() : 'child'.tr()}' : ''}',
@@ -162,7 +170,9 @@ class MyBookingPage extends StatelessWidget {
const Divider(color: colorDivider),
Text(
'booker'.tr(),
- style: theme.textTheme.titleMedium,
+ style: theme.textTheme.bodySmall?.copyWith(
+ color: Colors.black.withValues(alpha: 0.65),
+ ),
),
Text(booking.booker.name, style: theme.textTheme.bodyMedium),
const SizedBox(height: 8),
@@ -176,7 +186,9 @@ class MyBookingPage extends StatelessWidget {
children: [
Text(
'share_booking'.tr(),
- style: theme.textTheme.titleMedium,
+ style: theme.textTheme.bodySmall?.copyWith(
+ color: Colors.black.withValues(alpha: 0.65),
+ ),
),
Text('not_shared'.tr(), style: theme.textTheme.bodyMedium),
],
@@ -209,10 +221,8 @@ class MyBookingPage extends StatelessWidget {
children: [
Text(
'payment'.tr(),
- style: theme.textTheme.titleLarge?.copyWith(
- fontSize: 24,
+ style: theme.textTheme.headlineLarge?.copyWith(
fontWeight: FontWeight.bold,
- color: Colors.black.withOpacity(0.65),
),
),
const SizedBox(height: 16),
@@ -221,7 +231,9 @@ class MyBookingPage extends StatelessWidget {
children: [
Column(
children: [
- Text('payment_method'.tr(), style: theme.textTheme.bodyMedium),
+ Text('payment_method'.tr(), style: theme.textTheme.bodySmall?.copyWith(
+ color: Colors.black.withValues(alpha: 0.65),
+ )),
const SizedBox(width: 8),
Text('•••• •••• •••• 1234', style: theme.textTheme.bodyMedium),
const SizedBox(width: 8),
@@ -233,7 +245,9 @@ class MyBookingPage extends StatelessWidget {
const SizedBox(height: 16),
const Divider(color: colorDivider),
const SizedBox(height: 8),
- Text('payment_date'.tr(), style: theme.textTheme.titleMedium),
+ Text('payment_date'.tr(), style: theme.textTheme.bodySmall?.copyWith(
+ color: Colors.black.withValues(alpha: 0.65),
+ )),
const SizedBox(height: 4),
Text(DateFormat('d. MMM').format(booking.bookingDate),
style: theme.textTheme.bodyMedium),
@@ -248,8 +262,8 @@ class MyBookingPage extends StatelessWidget {
children: [
Text(
'cancellation_policy'.tr(),
- style: theme.textTheme.titleMedium?.copyWith(
- color: Colors.black.withOpacity(0.65),
+ style: theme.textTheme.bodySmall?.copyWith(
+ color: Colors.black.withValues(alpha: 0.65),
),
),
const SizedBox(height: 8),
@@ -280,6 +294,7 @@ class MyBookingPage extends StatelessWidget {
'my_balance'.tr(),
style: theme.textTheme.bodyLarge?.copyWith(
color: Colors.white,
+ fontWeight: FontWeight.w600,
),
),
Row(
@@ -288,6 +303,7 @@ class MyBookingPage extends StatelessWidget {
'${booking.totalCharge} kr',
style: theme.textTheme.bodyLarge?.copyWith(
color: Colors.white,
+ fontWeight: FontWeight.w600,
),
),
const SizedBox(width: 8),