6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 94cdba6f
Changed files
comwell_key_app/assets/translations/da-DK.json | 3 +- comwell_key_app/assets/translations/en-US.json | 3 +- .../lib/booking_details/booking_details_page.dart | 3 +- .../components/practical_information_button.dart | 35 ++++++++++------------ 4 files changed, 21 insertions(+), 23 deletions(-)
Diff
diff --git a/comwell_key_app/assets/translations/da-DK.json b/comwell_key_app/assets/translations/da-DK.json
index 9ba8e60b..43863424 100644
--- a/comwell_key_app/assets/translations/da-DK.json
+++ b/comwell_key_app/assets/translations/da-DK.json
@@ -286,5 +286,6 @@
"confirm_up_sales_dialog_confirm": "Ja, tilføj tilkøb",
"confirm_up_sales_dialog_cancel": "Nej",
"email_launch_error": "Kunne ikke åbne email klient",
- "phone_launch_error": "Kunne ikke åbne telefon"
+ "phone_launch_error": "Kunne ikke åbne telefon",
+ "balance": "SALDO"
}
\ No newline at end of file
diff --git a/comwell_key_app/assets/translations/en-US.json b/comwell_key_app/assets/translations/en-US.json
index 8cbfd876..fc70663f 100644
--- a/comwell_key_app/assets/translations/en-US.json
+++ b/comwell_key_app/assets/translations/en-US.json
@@ -285,6 +285,7 @@
"confirm_up_sales_dialog_confirm": "Yes, add upgrades",
"confirm_up_sales_dialog_cancel": "No",
"email_launch_error": "Could not launch email client",
- "phone_launch_error": "Could not launch phone call"
+ "phone_launch_error": "Could not launch phone call",
+ "balance": "BALANCE"
}
diff --git a/comwell_key_app/lib/booking_details/booking_details_page.dart b/comwell_key_app/lib/booking_details/booking_details_page.dart
index 987057a7..9f61e2ba 100644
--- a/comwell_key_app/lib/booking_details/booking_details_page.dart
+++ b/comwell_key_app/lib/booking_details/booking_details_page.dart
@@ -30,7 +30,6 @@ class BookingDetailsPage extends StatelessWidget {
cubit.add(InitialEvent());
//cubit.add(GetBookingDetailsEvent(cubit.booking.confirmationId));
}
- final checkOutDate = DateTime.now() == cubit.booking.endDate;
return Scaffold(
extendBodyBehindAppBar: true,
@@ -163,7 +162,7 @@ class BookingDetailsPage extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
- 'BALANCE',
+ 'balance'.tr(),
textAlign: TextAlign.end,
style: theme.textTheme.bodySmall?.copyWith(
color: Colors.white.withValues(alpha: 0.65),
diff --git a/comwell_key_app/lib/booking_details/components/practical_information_button.dart b/comwell_key_app/lib/booking_details/components/practical_information_button.dart
index 4531749c..834b9cf9 100644
--- a/comwell_key_app/lib/booking_details/components/practical_information_button.dart
+++ b/comwell_key_app/lib/booking_details/components/practical_information_button.dart
@@ -18,7 +18,6 @@ class PracticalInformationButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
- final screenHeight = MediaQuery.of(context).size.height;
final screenWidth = MediaQuery.of(context).size.width;
return Material(
@@ -50,25 +49,23 @@ class PracticalInformationButton extends StatelessWidget {
)),
),
),
- Positioned(
- top: screenHeight * 0.15,
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: [
- Text(title),
- SizedBox(
- width: screenWidth * 0.4,
- child: Text(
- subtitle,
- style: Theme.of(context)
- .textTheme
- .bodySmall
- ?.copyWith(color: Colors.grey),
- maxLines: 3,
- ),
+ const SizedBox(height: 16),
+ Column(
+ crossAxisAlignment: CrossAxisAlignment.start,
+ children: [
+ Text(title),
+ SizedBox(
+ width: screenWidth * 0.4,
+ child: Text(
+ subtitle,
+ style: Theme.of(context)
+ .textTheme
+ .bodySmall
+ ?.copyWith(color: Colors.grey),
+ maxLines: 3,
),
- ],
- ),
+ ),
+ ],
),
],
),