6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 574a7b62
Changed files
.../lib/check_in/bloc/check_in_cubit.dart | 2 - comwell_key_app/lib/check_in/check_in_page.dart | 2 - .../lib/check_out/bloc/check_out_cubit.dart | 2 - .../components/share_room_confirm_dialog.dart | 60 ++++++++++++++++++++++ comwell_key_app/lib/key/bloc/key_bloc.dart | 4 -- 5 files changed, 60 insertions(+), 10 deletions(-)
Diff
diff --git a/comwell_key_app/lib/check_in/bloc/check_in_cubit.dart b/comwell_key_app/lib/check_in/bloc/check_in_cubit.dart
index 120d30d2..ff9d6757 100644
--- a/comwell_key_app/lib/check_in/bloc/check_in_cubit.dart
+++ b/comwell_key_app/lib/check_in/bloc/check_in_cubit.dart
@@ -24,8 +24,6 @@ class CheckInCubit extends Cubit<CheckInState> {
await tryGetKeys();
await Future<void>.delayed(const Duration(milliseconds: 1000));
- print("qqq cubit.state.checkInStatus: ${state.checkInStatus}");
- print("qqq cubit.booking.roomNumber: ${bookingDetails.roomNumber}");
emit(state.checkInStatusYourDigitalCard(
roomNumber: bookingDetails.roomNumber));
} catch (err, st) {
diff --git a/comwell_key_app/lib/check_in/check_in_page.dart b/comwell_key_app/lib/check_in/check_in_page.dart
index 75c12777..4b6991fe 100644
--- a/comwell_key_app/lib/check_in/check_in_page.dart
+++ b/comwell_key_app/lib/check_in/check_in_page.dart
@@ -86,8 +86,6 @@ class _CheckInPageState extends State<CheckInPage>
Widget getCardContent(BuildContext context) {
final cubit = context.read<CheckInCubit>();
- print("qqq cubit.state.checkInStatus: ${cubit.state.checkInStatus}");
- print("qqq cubit.booking.roomNumber: ${cubit.booking.roomNumber}");
if (cubit.state.checkInStatus is CheckInStatusYourDigitalCard) {
return Container(
decoration: BoxDecoration(
diff --git a/comwell_key_app/lib/check_out/bloc/check_out_cubit.dart b/comwell_key_app/lib/check_out/bloc/check_out_cubit.dart
index c5a0758d..7eb52a32 100644
--- a/comwell_key_app/lib/check_out/bloc/check_out_cubit.dart
+++ b/comwell_key_app/lib/check_out/bloc/check_out_cubit.dart
@@ -145,8 +145,6 @@ class CheckoutCubit extends Cubit<CheckoutState> {
final bookingPrice = booking.balance?.toInt();
- print("bookingPrice: $bookingPrice");
-
final amount = Amount(
value: bookingPrice!,
currency: currency,
diff --git a/comwell_key_app/lib/choose_share_room/components/share_room_confirm_dialog.dart b/comwell_key_app/lib/choose_share_room/components/share_room_confirm_dialog.dart
new file mode 100644
index 00000000..38b62a60
--- /dev/null
+++ b/comwell_key_app/lib/choose_share_room/components/share_room_confirm_dialog.dart
@@ -0,0 +1,60 @@
+import 'package:comwell_key_app/themes/light_theme.dart';
+import 'package:flutter/material.dart';
+import 'package:go_router/go_router.dart';
+import 'package:easy_localization/easy_localization.dart';
+
+class ShareRoomConfirmDialog extends StatelessWidget {
+
+ const ShareRoomConfirmDialog({super.key});
+
+ @override
+ Widget build(BuildContext context) {
+ final theme = Theme.of(context);
+ return Dialog(
+ backgroundColor: Colors.white,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(24),
+ ),
+ child: Padding(
+ padding: const EdgeInsets.symmetric(vertical: 32.0, horizontal: 16.0),
+ child: Column(
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Text(
+ 'choose_room_confirmation_title'.tr(),
+ textAlign: TextAlign.center,
+ style: theme.textTheme.headlineMedium,
+ ),
+ const SizedBox(height: 16),
+ Text(
+ 'choose_room_confirmation_subtitle'.tr(),
+ textAlign: TextAlign.center,
+ style: theme.textTheme.bodySmall,
+ ),
+ const SizedBox(height: 32),
+ ElevatedButton(
+ onPressed: () {
+ context.pop(true);
+ },
+ child: Text('choose_room_confirmation_confirm'.tr(),
+ style: theme.textTheme.headlineSmall
+ ?.copyWith(color: Colors.white)),
+ ),
+ const SizedBox(height: 16),
+ OutlinedButton(
+ style: OutlinedButton.styleFrom(
+ minimumSize: const Size(double.infinity, 50),
+ side: const BorderSide(color: colorDivider),
+ ),
+ onPressed: () {
+ context.pop(false);
+ },
+ child: Text('choose_room_confirmation_cancel'.tr(),
+ style: theme.textTheme.headlineSmall),
+ ),
+ ],
+ ),
+ ),
+ );
+ }
+}
diff --git a/comwell_key_app/lib/key/bloc/key_bloc.dart b/comwell_key_app/lib/key/bloc/key_bloc.dart
index 5427cb7f..439a4a98 100644
--- a/comwell_key_app/lib/key/bloc/key_bloc.dart
+++ b/comwell_key_app/lib/key/bloc/key_bloc.dart
@@ -1,4 +1,3 @@
-import 'dart:async';
import 'dart:core';
import 'package:bloc/bloc.dart';
import 'package:comwell_key_app/key/repository/key_repository.dart';
@@ -22,12 +21,10 @@ class KeyBloc extends Bloc<KeyEvent, KeyState> {
required this.keyRepository,
required this.bookingDetailsRepository})
: super(KeyState.unknown()) {
- print("qqq refreshKeys");
on<SearchForKeys>((event, emit) async {
emit(KeyState.searchForKeys());
try {
final keys = await seosRepository.refreshKeys();
- print("qqq keys=$keys");
emit(KeyState.validKeys(keys));
add(const StartScanning());
} catch (e) {
@@ -56,7 +53,6 @@ class KeyBloc extends Bloc<KeyEvent, KeyState> {
// }
// }
} catch (e) {
- print("qqq e=$e");
emit(KeyState.scanningError(e.toString()));
}
});