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

AuthorMikkel Thygesen<mth@dwarf.dk>
Date2025-01-10 00:09:51 +0100
462: reverted back button design

Changed files

.../lib/pregistration/preregistration_flow.dart    | 77 +++++++++++-----------
 1 file changed, 40 insertions(+), 37 deletions(-)

Diff

diff --git a/comwell_key_app/lib/pregistration/preregistration_flow.dart b/comwell_key_app/lib/pregistration/preregistration_flow.dart
index c7861bfd..a56f0bdc 100644
--- a/comwell_key_app/lib/pregistration/preregistration_flow.dart
+++ b/comwell_key_app/lib/pregistration/preregistration_flow.dart
@@ -47,9 +47,13 @@ class _PreregistrationFlowState extends State<PreregistrationFlow> {
builder: (context, state) {
final cubit = context.read<PreregistrationCubit>();
return Scaffold(
- backgroundColor: Colors.white,
+ backgroundColor: colorBackground,
appBar: AppBar(
backgroundColor: colorSecondary,
+ shape: const RoundedRectangleBorder(
+ borderRadius:
+ BorderRadius.vertical(bottom: Radius.circular(24))),
+ toolbarOpacity: 1.0,
leading: BackButton(
color: Colors.black,
onPressed: () {
@@ -57,47 +61,46 @@ class _PreregistrationFlowState extends State<PreregistrationFlow> {
},
),
),
- bottomNavigationBar: Builder(
- builder: (context) {
- if(state.loading) return const SizedBox();
- return Column(
- // BOTTOM NAVIGATION
- mainAxisSize: MainAxisSize.min,
- children: [
- const Divider(
- color: Colors.black12,
- height: 0,
- ),
- Row(
- children: [
- Expanded(
- child: Padding(
- padding: const EdgeInsets.all(16.0),
- child: ElevatedButton(
- onPressed: () {
- cubit.onContinueClicked();
- },
- style: const ButtonStyle(
- backgroundColor:
- WidgetStatePropertyAll(Color(0xffAA8D65)),
- foregroundColor:
- WidgetStatePropertyAll(Colors.white)),
- child: Padding(
- padding: const EdgeInsets.symmetric(vertical: 16.0),
- child: Text(state.buttonTextLocalized),
- ),
+ bottomNavigationBar: Builder(builder: (context) {
+ if (state.loading) return const SizedBox();
+ return Column(
+ // BOTTOM NAVIGATION
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ const Divider(
+ color: Colors.black12,
+ height: 0,
+ ),
+ Row(
+ children: [
+ Expanded(
+ child: Padding(
+ padding: const EdgeInsets.all(16.0),
+ child: ElevatedButton(
+ onPressed: () {
+ cubit.onContinueClicked();
+ },
+ style: const ButtonStyle(
+ backgroundColor:
+ WidgetStatePropertyAll(Color(0xffAA8D65)),
+ foregroundColor:
+ WidgetStatePropertyAll(Colors.white)),
+ child: Padding(
+ padding:
+ const EdgeInsets.symmetric(vertical: 16.0),
+ child: Text(state.buttonTextLocalized),
),
),
),
- ],
- ),
- ],
- );
- }
- ),
+ ),
+ ],
+ ),
+ ],
+ );
+ }),
body: Expanded(
child: Padding(
- padding: const EdgeInsets.all(12.0),
+ padding: const EdgeInsets.symmetric(horizontal: 12.0),
child: Builder(
builder: (context) {
if (state.loading) {