6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 3717792c
Changed files
comwell_key_app/lib/key/key_page.dart | 2 +- .../lib/overview/components/current_booking_list_item_view.dart | 3 +-- comwell_key_app/lib/overview/overview_page.dart | 9 +++++---- 3 files changed, 7 insertions(+), 7 deletions(-)
Diff
diff --git a/comwell_key_app/lib/key/key_page.dart b/comwell_key_app/lib/key/key_page.dart
index 47e04896..4aa27fe6 100644
--- a/comwell_key_app/lib/key/key_page.dart
+++ b/comwell_key_app/lib/key/key_page.dart
@@ -14,7 +14,7 @@ class KeyPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
- //context.read<KeyBloc>().add(const StartScanning());
+ context.read<KeyBloc>().add(const StartScanning());
return BlocBuilder<KeyBloc, KeyState>(builder: (context, state) {
//if (state.status == KeyStatus.scanning || state.status != KeyStatus.openClosestReaderSuccess) {
diff --git a/comwell_key_app/lib/overview/components/current_booking_list_item_view.dart b/comwell_key_app/lib/overview/components/current_booking_list_item_view.dart
index ff41b1ad..d6f5870a 100644
--- a/comwell_key_app/lib/overview/components/current_booking_list_item_view.dart
+++ b/comwell_key_app/lib/overview/components/current_booking_list_item_view.dart
@@ -26,8 +26,7 @@ class CurrentBookingListItem extends StatelessWidget {
margin: const EdgeInsets.symmetric(horizontal: 16, vertical: 16),
child: InkWell(
onTap: () =>
- //context.pushNamed(AppRoutes.bookingDetails.name, extra: booking),
- context.pushNamed(AppRoutes.key.name),
+ context.pushNamed(AppRoutes.bookingDetails.name, extra: booking),
child: Column(
children: [
ClipRRect(
diff --git a/comwell_key_app/lib/overview/overview_page.dart b/comwell_key_app/lib/overview/overview_page.dart
index 366b6474..785e06e6 100644
--- a/comwell_key_app/lib/overview/overview_page.dart
+++ b/comwell_key_app/lib/overview/overview_page.dart
@@ -33,10 +33,11 @@ class OverviewTabViewState extends State<OverviewPage>
overviewCubit.fetchBookings();
}
-
-
-
-
+ @override
+ void dispose() {
+ _tabController.dispose();
+ super.dispose();
+ }
@override
Widget build(BuildContext context) {