6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 225ff9e8
Changed files
comwell_key_app/lib/share/share_booking_page.dart | 44 +++++++++++++---------- 1 file changed, 26 insertions(+), 18 deletions(-)
Diff
diff --git a/comwell_key_app/lib/share/share_booking_page.dart b/comwell_key_app/lib/share/share_booking_page.dart
index 3c748838..4cd51b31 100644
--- a/comwell_key_app/lib/share/share_booking_page.dart
+++ b/comwell_key_app/lib/share/share_booking_page.dart
@@ -22,21 +22,31 @@ class ShareBookingPage extends StatelessWidget {
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
- const SizedBox(width: 40),
+ const SizedBox(width: 52),
Text('share_booking_page_title'.tr(),
style: theme.textTheme.titleMedium?.copyWith(
color: Colors.white,
fontWeight: FontWeight.bold,
)),
- ElevatedButton(
- onPressed: () {
- Navigator.of(context).pop();
- },
- style: ElevatedButton.styleFrom(
+ Padding(
+ padding: const EdgeInsets.only(right: 16),
+ child: ElevatedButton(
+ onPressed: () {
+ Navigator.of(context).pop();
+ },
+ style: ElevatedButton.styleFrom(
+ minimumSize: const Size(36, 36),
+ padding: EdgeInsets.zero,
backgroundColor: Colors.white,
shape: const CircleBorder(),
- elevation: 0),
- child: const Icon(Icons.close, color: Colors.black),
+ elevation: 0,
+ ),
+ child: const Icon(
+ Icons.close,
+ color: Colors.black,
+ size: 24,
+ ),
+ ),
)
],
),
@@ -55,10 +65,9 @@ class ShareBookingPage extends StatelessWidget {
left: 16,
child: Text(
booking.hotelName,
- style: Theme.of(context).textTheme.titleLarge?.copyWith(
- color: Colors.white,
- fontWeight: FontWeight.bold,
- ),
+ style: theme.textTheme.headlineLarge?.copyWith(
+ color: Colors.white,
+ ),
),
),
Positioned(
@@ -70,13 +79,13 @@ class ShareBookingPage extends StatelessWidget {
Row(
children: [
Text(DateFormat('d. MMM').format(booking.startDate),
- style: theme.textTheme.bodySmall?.copyWith(
+ style: theme.textTheme.bodyMedium?.copyWith(
color: Colors.white,
)),
const Icon(Icons.arrow_forward,
size: 16, color: Colors.white),
Text(DateFormat('d. MMM').format(booking.endDate),
- style: theme.textTheme.bodySmall?.copyWith(
+ style: theme.textTheme.bodyMedium?.copyWith(
color: Colors.white,
)),
],
@@ -94,7 +103,7 @@ class ShareBookingPage extends StatelessWidget {
),
),
Padding(
- padding: const EdgeInsets.symmetric(horizontal: 16),
+ padding: const EdgeInsets.symmetric(horizontal: 40),
child: Text(
'share_booking_page_subtitle'.tr(),
style: Theme.of(context).textTheme.bodySmall?.copyWith(
@@ -104,7 +113,7 @@ class ShareBookingPage extends StatelessWidget {
),
),
Padding(
- padding: const EdgeInsets.all(8.0),
+ padding: const EdgeInsets.all(16.0),
child: SizedBox(
width: double.infinity,
child: ElevatedButton(
@@ -113,12 +122,11 @@ class ShareBookingPage extends StatelessWidget {
},
style: ElevatedButton.styleFrom(
backgroundColor: Colors.white,
- minimumSize: const Size.fromHeight(50),
+ minimumSize: const Size.fromHeight(52),
elevation: 0,
),
child: Text('share_booking_page_share_button'.tr(),
style: theme.textTheme.bodyMedium?.copyWith(
- fontWeight: FontWeight.bold,
color: Colors.black,
)),
),