6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit b3d76b09

AuthorEdmir Suljic<esu@dwarf.dk>
Date2026-03-11 09:14:47 +0100
pr comments

Changed files

.../screens/booking_details/bloc/booking_details_cubit.dart  |  1 -
 .../screens/booking_details/booking_details_page.dart        | 12 +++++++++---
 .../screens/booking_details/components/share_button.dart     |  1 -
 3 files changed, 9 insertions(+), 5 deletions(-)

Diff

diff --git a/comwell_key_app/lib/presentation/screens/booking_details/bloc/booking_details_cubit.dart b/comwell_key_app/lib/presentation/screens/booking_details/bloc/booking_details_cubit.dart
index 24e25691..5503364b 100644
--- a/comwell_key_app/lib/presentation/screens/booking_details/bloc/booking_details_cubit.dart
+++ b/comwell_key_app/lib/presentation/screens/booking_details/bloc/booking_details_cubit.dart
@@ -127,7 +127,6 @@ class BookingDetailsCubit extends BaseCubit<BookingDetailsState> {
if (keys.isEmpty || !isKeyLoadedForBooking) {
await _seosRepository.provisionKey(bookingId: booking.id, hotelCode: booking.hotelCode);
final keys = await _seosRepository.refreshKeys();
- print("keys: $keys");
safeEmit(state.copyWith(keys: keys));
}
} catch (e) {
diff --git a/comwell_key_app/lib/presentation/screens/booking_details/booking_details_page.dart b/comwell_key_app/lib/presentation/screens/booking_details/booking_details_page.dart
index 351fb5be..f71162a9 100644
--- a/comwell_key_app/lib/presentation/screens/booking_details/booking_details_page.dart
+++ b/comwell_key_app/lib/presentation/screens/booking_details/booking_details_page.dart
@@ -65,7 +65,6 @@ class BookingDetailsPage extends StatelessWidget {
return Stack(
children: [
-
// Background image - fixed
Container(
decoration: BoxDecoration(
@@ -89,7 +88,11 @@ class BookingDetailsPage extends StatelessWidget {
),
),
// Share button - fixed at top
-
+ SafeArea(
+ child: shouldShowShareButton
+ ? ShareButton(guests: cubit.booking.guests)
+ : const SizedBox(),
+ ),
// Scrollable content with haptic feedback
_ScrollableBookingContent(
screenHeight: screenHeight,
@@ -245,7 +248,10 @@ class _ScrollableBookingContentState extends State<_ScrollableBookingContent> {
isRoomUpgradeSelected: false,
isSinglePurchase: true,
);
- final result = await context.push(AppRoutes.servicesUpgrade, extra: roomUpgradeList);
+ final result = await context.push(
+ AppRoutes.servicesUpgrade,
+ extra: roomUpgradeList,
+ );
if (result == true && context.mounted) {
widget.cubit.init();
}
diff --git a/comwell_key_app/lib/presentation/screens/booking_details/components/share_button.dart b/comwell_key_app/lib/presentation/screens/booking_details/components/share_button.dart
index f55439d7..601531b9 100644
--- a/comwell_key_app/lib/presentation/screens/booking_details/components/share_button.dart
+++ b/comwell_key_app/lib/presentation/screens/booking_details/components/share_button.dart
@@ -56,7 +56,6 @@ class ShareButton extends StatelessWidget {
height: userButtonSize,
child: ElevatedButton(
onPressed: () {
- print("booking: $booking");
context.push(AppRoutes.shareBooking, extra: booking);
},
style: ElevatedButton.styleFrom(