6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit 31bda74e
Changed files
.../overview/repository/overview_repository.dart | 2 +- .../lib/pregistration/preregistration_flow.dart | 37 +++++++++++----------- 2 files changed, 19 insertions(+), 20 deletions(-)
Diff
diff --git a/comwell_key_app/lib/overview/repository/overview_repository.dart b/comwell_key_app/lib/overview/repository/overview_repository.dart
index a9a160eb..b2fe3f0f 100644
--- a/comwell_key_app/lib/overview/repository/overview_repository.dart
+++ b/comwell_key_app/lib/overview/repository/overview_repository.dart
@@ -18,7 +18,7 @@ class OverviewRepository {
await database.bookingsDao.insertBookings(bookings);
return bookings;
} catch (e) {
- throw Exception('Failed to fetch bookings' + e.toString());
+ throw Exception('Failed to fetch bookings$e');
}
}
diff --git a/comwell_key_app/lib/pregistration/preregistration_flow.dart b/comwell_key_app/lib/pregistration/preregistration_flow.dart
index 80fbea12..099ce3c3 100644
--- a/comwell_key_app/lib/pregistration/preregistration_flow.dart
+++ b/comwell_key_app/lib/pregistration/preregistration_flow.dart
@@ -76,8 +76,8 @@ class _PreregistrationFlowState extends State<PreregistrationFlow> {
),
Row(
children: [
- //Expanded(
- Padding(
+ Expanded(
+ child: Padding(
padding: const EdgeInsets.all(16.0),
child: ElevatedButton(
onPressed: cubit.canContinue
@@ -100,30 +100,29 @@ class _PreregistrationFlowState extends State<PreregistrationFlow> {
),
),
),
- // ),
+ ),
],
),
],
);
}),
body: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 12.0),
- child: Builder(
- builder: (context) {
- if (state.loading) {
- return const Center(child: CircularProgressIndicator());
- }
- return PageView(
- key: const PageStorageKey("prereg_flow"),
- physics: const NeverScrollableScrollPhysics(),
- controller: cubit.pageController,
- children: PreregistrationPage.getPages(ValueKey(state))
- .toList(),
- );
- },
- ),
+ padding: const EdgeInsets.symmetric(horizontal: 12.0),
+ child: Builder(
+ builder: (context) {
+ if (state.loading) {
+ return const Center(child: CircularProgressIndicator());
+ }
+ return PageView(
+ key: const PageStorageKey("prereg_flow"),
+ physics: const NeverScrollableScrollPhysics(),
+ controller: cubit.pageController,
+ children:
+ PreregistrationPage.getPages(ValueKey(state)).toList(),
+ );
+ },
),
-
+ ),
);
},
),