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

AuthorNKL<nikolaj.king@gmail.com>
Date2024-11-22 11:14:10 +0100
added address view and save new address logic. Still missing backend link

Changed files

comwell_key_app/assets/translations/da-DK.json     |   6 +-
 comwell_key_app/assets/translations/en-US.json     |   6 +-
 .../lib/components/comwell_app_bar.dart            |   2 +
 .../lib/components/round_icon_button.dart          |   6 +-
 comwell_key_app/lib/home/home_page.dart            |   1 +
 comwell_key_app/lib/key/key_page.dart              |   1 +
 comwell_key_app/lib/profile/profile_page.dart      |   1 +
 .../components/address_bottom_sheet.dart           | 134 +++++++++++++++++++++
 .../components/change_password_modal.dart          |  19 +++
 .../components/comwell_text_field.dart             |  78 +++++++-----
 .../cubit/profile_settings_cubit.dart              |  12 ++
 .../lib/profile_settings/model/user.dart           |  22 ++++
 .../profile_settings/profile_settings_page.dart    |  29 +++--
 .../profile_settings_repository.dart               |   7 ++
 comwell_key_app/lib/routing/app_router.dart        |  36 ++++--
 comwell_key_app/lib/routing/app_routes.dart        |   2 +-
 16 files changed, 314 insertions(+), 48 deletions(-)

Diff

diff --git a/comwell_key_app/assets/translations/da-DK.json b/comwell_key_app/assets/translations/da-DK.json
index e55ad5ed..4bb18a63 100644
--- a/comwell_key_app/assets/translations/da-DK.json
+++ b/comwell_key_app/assets/translations/da-DK.json
@@ -61,6 +61,10 @@
"payment": "Betaling",
"payment_method": "Betalingsmetode",
"bill": "Kvittering",
- "get_bill": "Hent kvittering"
+ "get_bill": "Hent kvittering",
+ "save": "Gem",
+ "zipCode": "Postnummer",
+ "city": "By",
+ "country": "Land"
}
\ No newline at end of file
diff --git a/comwell_key_app/assets/translations/en-US.json b/comwell_key_app/assets/translations/en-US.json
index 8f93b8f2..71e5df48 100644
--- a/comwell_key_app/assets/translations/en-US.json
+++ b/comwell_key_app/assets/translations/en-US.json
@@ -61,5 +61,9 @@
"payment": "Payment",
"payment_method": "Payment method",
"bill": "Bill",
- "get_bill": "Get bill"
+ "get_bill": "Get bill",
+ "save": "Save",
+ "zipCode": "Zip code",
+ "city": "City",
+ "country": "Country"
}
\ No newline at end of file
diff --git a/comwell_key_app/lib/components/comwell_app_bar.dart b/comwell_key_app/lib/components/comwell_app_bar.dart
index ce29531d..50916051 100644
--- a/comwell_key_app/lib/components/comwell_app_bar.dart
+++ b/comwell_key_app/lib/components/comwell_app_bar.dart
@@ -36,6 +36,7 @@ class ComwellAppBar extends StatelessWidget implements PreferredSizeWidget {
Visibility(
visible: shouldShowBackButton,
child: RoundIconButton(
+ color: Colors.white,
icon: "assets/icons/arrow-right.svg",
onPressed: () {
Navigator.of(context).pop();
@@ -45,6 +46,7 @@ class ComwellAppBar extends StatelessWidget implements PreferredSizeWidget {
Visibility(
visible: shouldShowProfileButton,
child: RoundIconButton(
+ color: Colors.white,
icon: "assets/icons/user-open.svg",
onPressed: () {
context.goNamed(AppRoutes.profile.name);
diff --git a/comwell_key_app/lib/components/round_icon_button.dart b/comwell_key_app/lib/components/round_icon_button.dart
index 3044bbe5..f4e74139 100644
--- a/comwell_key_app/lib/components/round_icon_button.dart
+++ b/comwell_key_app/lib/components/round_icon_button.dart
@@ -4,9 +4,11 @@ import 'package:flutter_svg/svg.dart';
class RoundIconButton extends StatelessWidget {
final String icon;
final Function onPressed;
+ final Color color;
const RoundIconButton({
required this.icon,
required this.onPressed,
+ required this.color,
super.key,
});
@@ -17,10 +19,10 @@ class RoundIconButton extends StatelessWidget {
style: ElevatedButton.styleFrom(
fixedSize: const Size(36, 36),
elevation: 0,
- backgroundColor: Colors.white,
+ backgroundColor: color,
shape: const CircleBorder(side: BorderSide(style: BorderStyle.none)),
),
child: SvgPicture.asset(icon),
);
}
-}
+}
\ No newline at end of file
diff --git a/comwell_key_app/lib/home/home_page.dart b/comwell_key_app/lib/home/home_page.dart
index 50e60aa2..7c852231 100644
--- a/comwell_key_app/lib/home/home_page.dart
+++ b/comwell_key_app/lib/home/home_page.dart
@@ -110,6 +110,7 @@ class _HomeWidget extends State<HomeWidget> {
),
],
),
+
const BottomSheetWidget(
widgetChildren: [
SizedBox(
diff --git a/comwell_key_app/lib/key/key_page.dart b/comwell_key_app/lib/key/key_page.dart
index 73477b3a..12f5bd3c 100644
--- a/comwell_key_app/lib/key/key_page.dart
+++ b/comwell_key_app/lib/key/key_page.dart
@@ -38,6 +38,7 @@ class KeyPage extends StatelessWidget {
Align(
alignment: AlignmentDirectional.centerEnd,
child: RoundIconButton(
+ color: Colors.white,
onPressed: () {
context.pop();
},
diff --git a/comwell_key_app/lib/profile/profile_page.dart b/comwell_key_app/lib/profile/profile_page.dart
index 16ec88b3..d5a4c1ee 100644
--- a/comwell_key_app/lib/profile/profile_page.dart
+++ b/comwell_key_app/lib/profile/profile_page.dart
@@ -26,6 +26,7 @@ class ProfilePage extends StatelessWidget {
alignment: Alignment.centerRight,
child: RoundIconButton(
icon: "assets/icons/close-icon.svg",
+ color: Colors.white,
onPressed: () {
context.pop();
}),
diff --git a/comwell_key_app/lib/profile_settings/components/address_bottom_sheet.dart b/comwell_key_app/lib/profile_settings/components/address_bottom_sheet.dart
new file mode 100644
index 00000000..4f4d7ec2
--- /dev/null
+++ b/comwell_key_app/lib/profile_settings/components/address_bottom_sheet.dart
@@ -0,0 +1,134 @@
+import 'package:comwell_key_app/components/round_icon_button.dart';
+import 'package:comwell_key_app/profile_settings/components/comwell_text_field.dart';
+import 'package:comwell_key_app/profile_settings/cubit/profile_settings_cubit.dart';
+import 'package:comwell_key_app/profile_settings/model/address.dart';
+import 'package:comwell_key_app/profile_settings/model/user.dart';
+import 'package:comwell_key_app/themes/light_theme.dart';
+import 'package:easy_localization/easy_localization.dart';
+import 'package:flutter/material.dart';
+import 'package:flutter_bloc/flutter_bloc.dart';
+import 'package:go_router/go_router.dart';
+
+class AddressBottomSheet extends StatelessWidget {
+ final User user;
+ final TextEditingController _addressController = TextEditingController();
+ final TextEditingController _zipCodeController = TextEditingController();
+ final TextEditingController _cityController = TextEditingController();
+ final TextEditingController _countryController = TextEditingController();
+
+ AddressBottomSheet({
+ required this.user,
+ super.key,
+ });
+
+ @override
+ Widget build(BuildContext context) {
+ final theme = Theme.of(context);
+
+ _addressController.text = user.address.street;
+ _zipCodeController.text = user.address.zipCode;
+ _cityController.text = user.address.city;
+ _countryController.text = user.address.country;
+ return Wrap(children: [
+ Container(
+ decoration: const BoxDecoration(
+ color: Colors.white,
+ borderRadius: BorderRadius.only(
+ topLeft: Radius.circular(24),
+ topRight: Radius.circular(24),
+ ),
+ ),
+ height: MediaQuery.of(context).copyWith().size.height * 0.7,
+ child: Column(children: [
+ Padding(
+ padding: const EdgeInsets.only(top: 40, left: 16),
+ child: Container(
+ height: 47,
+ color: Colors.white,
+ child: Stack(
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ Text('profil_settings_address'.tr(),
+ style: theme.textTheme.headlineLarge),
+ RoundIconButton(
+ icon: 'assets/icons/close-icon.svg',
+ color: sandColor[20]!,
+ onPressed: () {
+ context.pop();
+ }),
+ ],
+ )
+ ],
+ ),
+ ),
+ ),
+ const SizedBox(height: 24),
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16),
+ child: ComwellTextField(
+ fieldName: "profil_settings_address".tr(),
+ initialValue: user.address.street,
+ readOnly: false,
+ controller: _addressController)),
+ const SizedBox(height: 8),
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16),
+ child: ComwellTextField(
+ fieldName: "zipCode".tr(),
+ initialValue: user.address.zipCode,
+ readOnly: false,
+ controller: _zipCodeController)),
+ const SizedBox(height: 8),
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16),
+ child: ComwellTextField(
+ fieldName: "city".tr(),
+ initialValue: user.address.city,
+ readOnly: false,
+ controller: _cityController)),
+ const SizedBox(height: 8),
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16),
+ child: ComwellTextField(
+ fieldName: "country".tr(),
+ initialValue: user.address.country,
+ readOnly: false,
+ controller: _countryController)),
+ const Spacer(),
+ const Divider(color: colorDivider),
+ const SizedBox(height: 10),
+ Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 16),
+ child: ElevatedButton(
+ style: ElevatedButton.styleFrom(
+ backgroundColor: sandColor,
+ shape: RoundedRectangleBorder(
+ borderRadius: BorderRadius.circular(25),
+ ),
+ minimumSize: const Size(double.infinity, 52),
+ ),
+ onPressed: () async {
+ context.read<ProfileSettingsCubit>().updateAddress(
+ user,
+ Address(
+ street: _addressController.text,
+ zipCode: _zipCodeController.text,
+ city: _cityController.text,
+ country: _countryController.text));
+ context.pop();
+ },
+ child: Text(
+ 'save'.tr(),
+ style: theme.textTheme.headlineSmall?.copyWith(
+ color: Colors.white,
+ ),
+ ),
+ ),
+ ),
+ const SizedBox(height: 40),
+ ]))
+ ]);
+ }
+}
diff --git a/comwell_key_app/lib/profile_settings/components/change_password_modal.dart b/comwell_key_app/lib/profile_settings/components/change_password_modal.dart
new file mode 100644
index 00000000..86ef1071
--- /dev/null
+++ b/comwell_key_app/lib/profile_settings/components/change_password_modal.dart
@@ -0,0 +1,19 @@
+import 'package:comwell_key_app/components/bottom_sheet_widget.dart';
+import 'package:flutter/material.dart';
+
+class ChangePasswordModal extends StatefulWidget {
+ @override
+ _ChangePasswordModalState createState() => _ChangePasswordModalState();
+}
+
+class _ChangePasswordModalState extends State<ChangePasswordModal> {
+ @override
+ Widget build(BuildContext context) {
+ return Scaffold(
+ appBar: AppBar(
+ title: Text('Change Password'),
+ ),
+ body: BottomSheetWidget(widgetChildren: [const Text("data")],)
+ );
+ }
+}
\ No newline at end of file
diff --git a/comwell_key_app/lib/profile_settings/components/comwell_text_field.dart b/comwell_key_app/lib/profile_settings/components/comwell_text_field.dart
index ae68a8df..cc0624ab 100644
--- a/comwell_key_app/lib/profile_settings/components/comwell_text_field.dart
+++ b/comwell_key_app/lib/profile_settings/components/comwell_text_field.dart
@@ -1,18 +1,46 @@
import 'package:comwell_key_app/themes/light_theme.dart';
import 'package:flutter/material.dart';
-class ComwellTextField extends StatelessWidget {
+class ComwellTextField extends StatefulWidget {
final String fieldName;
final String initialValue;
+ final bool readOnly;
+ final TextEditingController controller;
+
+ ComwellTextField({
+ super.key,
+ required this.fieldName,
+ required this.initialValue,
+ required this.readOnly,
+ required this.controller,
+ });
+ @override
+ _ComwellTextFieldState createState() => _ComwellTextFieldState();
+}
+
+class _ComwellTextFieldState extends State<ComwellTextField> {
+
+ late FocusNode _focusNode;
+ bool _isFocused = false;
+
+ @override
+ void initState() {
+ super.initState();
+
+ _focusNode = FocusNode();
+
+ _focusNode.addListener(() {
+ setState(() {
+ _isFocused = _focusNode.hasFocus;
+ });
+ });
+ }
+
- const ComwellTextField({super.key,
- required this.fieldName,
- required this.initialValue});
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
- final TextEditingController controller = TextEditingController(text: initialValue);
return Container(
height: 62,
decoration: BoxDecoration(
@@ -21,30 +49,24 @@ class ComwellTextField extends StatelessWidget {
),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 12.0, vertical: 10),
- child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
- Text(
- fieldName,
- textAlign: TextAlign.start,
- style: theme.textTheme.bodySmall?.copyWith(
- color: Colors.black.withOpacity(
- 0.65,
- ),
- ),
+ child: TextField(
+ readOnly: widget.readOnly,
+ controller: widget.controller,
+ focusNode: _focusNode,
+ decoration: InputDecoration(
+ label: Text(widget.fieldName,
+ style: _isFocused
+ ? theme.textTheme.bodySmall
+ ?.copyWith(color: Colors.black.withOpacity(0.65))
+ : theme.textTheme.headlineSmall
+ ?.copyWith(color: Colors.black)),
+ isDense: true,
+ border: InputBorder.none,
+ contentPadding: const EdgeInsets.symmetric(vertical: 0),
),
- TextField(
- readOnly: true,
- controller: controller,
- decoration: const InputDecoration(
- isDense: true,
-
- border: InputBorder.none,
- contentPadding: EdgeInsets.symmetric(vertical: 0),
- ),
- style: Theme.of(context).textTheme.headlineSmall,
-
- ),
- ]),
+ style: Theme.of(context).textTheme.headlineSmall,
+ ),
),
);
}
-}
+}
\ No newline at end of file
diff --git a/comwell_key_app/lib/profile_settings/cubit/profile_settings_cubit.dart b/comwell_key_app/lib/profile_settings/cubit/profile_settings_cubit.dart
index 2051aaa3..0badb795 100644
--- a/comwell_key_app/lib/profile_settings/cubit/profile_settings_cubit.dart
+++ b/comwell_key_app/lib/profile_settings/cubit/profile_settings_cubit.dart
@@ -1,4 +1,5 @@
import 'package:bloc/bloc.dart';
+import 'package:comwell_key_app/profile_settings/model/address.dart';
import 'package:comwell_key_app/profile_settings/model/user.dart';
import 'package:comwell_key_app/profile_settings/profile_settings_repository.dart';
import 'package:equatable/equatable.dart';
@@ -19,4 +20,15 @@ class ProfileSettingsCubit extends Cubit<ProfileSettingsState> {
emit(ProfileSettingsError());
}
}
+
+ void updateAddress( User user, Address address) async {
+
+ final updatedUser = user.copyWith(address: address);
+ try {
+ await profileSettingsRepository.updateUser(updatedUser);
+ emit(ProfileSettingsLoaded(updatedUser));
+ } catch (e) {
+ emit(ProfileSettingsError());
+ }
+ }
}
diff --git a/comwell_key_app/lib/profile_settings/model/user.dart b/comwell_key_app/lib/profile_settings/model/user.dart
index 61ff5fff..44e5383c 100644
--- a/comwell_key_app/lib/profile_settings/model/user.dart
+++ b/comwell_key_app/lib/profile_settings/model/user.dart
@@ -45,4 +45,26 @@ class User {
'birthday': birthday.toIso8601String(),
};
}
+
+ User copyWith({
+ String? id,
+ String? firstName,
+ String? lastName,
+ String? countryCode,
+ String? phone,
+ String? email,
+ Address? address,
+ DateTime? birthday,
+ }) {
+ return User(
+ id: id ?? this.id,
+ firstName: firstName ?? this.firstName,
+ lastName: lastName ?? this.lastName,
+ countryCode: countryCode ?? this.countryCode,
+ phone: phone ?? this.phone,
+ email: email ?? this.email,
+ address: address ?? this.address,
+ birthday: birthday ?? this.birthday,
+ );
+ }
}
diff --git a/comwell_key_app/lib/profile_settings/profile_settings_page.dart b/comwell_key_app/lib/profile_settings/profile_settings_page.dart
index 473043d7..03d86b97 100644
--- a/comwell_key_app/lib/profile_settings/profile_settings_page.dart
+++ b/comwell_key_app/lib/profile_settings/profile_settings_page.dart
@@ -1,15 +1,18 @@
import 'package:comwell_key_app/components/comwell_app_bar.dart';
import 'package:comwell_key_app/profile_settings/components/Text_field_trailing_icon.dart';
+import 'package:comwell_key_app/profile_settings/components/address_bottom_sheet.dart';
import 'package:comwell_key_app/profile_settings/components/comwell_text_field.dart';
import 'package:comwell_key_app/profile_settings/components/date_time_picker.dart';
import 'package:comwell_key_app/profile_settings/components/intl_phone_field.dart';
import 'package:comwell_key_app/profile_settings/cubit/profile_settings_cubit.dart';
+import 'package:comwell_key_app/profile_settings/model/address.dart';
import 'package:comwell_key_app/themes/light_theme.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_svg/flutter_svg.dart';
+
class ProfileSettingsPage extends StatelessWidget {
const ProfileSettingsPage({super.key});
@@ -28,7 +31,7 @@ class ProfileSettingsPage extends StatelessWidget {
backgroundColor: Colors.white,
body: Center(child: CircularProgressIndicator()));
} else if (state is ProfileSettingsLoaded) {
- return _buildProfileSettingsPage(theme, state);
+ return _buildProfileSettingsPage(theme, state, context);
} else {
return Scaffold(
appBar: const ComwellAppBar(
@@ -46,7 +49,7 @@ class ProfileSettingsPage extends StatelessWidget {
}
Widget _buildProfileSettingsPage(
- ThemeData theme, ProfileSettingsState state) {
+ ThemeData theme, ProfileSettingsState state, BuildContext context) {
final ProfileSettingsLoaded loadedState = state as ProfileSettingsLoaded;
return Scaffold(
backgroundColor: Colors.white,
@@ -67,15 +70,21 @@ class ProfileSettingsPage extends StatelessWidget {
const SizedBox(height: 36),
ComwellTextField(
fieldName: "profil_settings_firstname".tr(),
- initialValue: loadedState.user.firstName),
+ initialValue: loadedState.user.firstName,
+ readOnly: true,
+ controller: TextEditingController()),
const SizedBox(height: 8),
ComwellTextField(
fieldName: "profil_settings_lastname".tr(),
- initialValue: loadedState.user.lastName),
+ initialValue: loadedState.user.lastName,
+ readOnly: true,
+ controller: TextEditingController()),
const SizedBox(height: 8),
ComwellTextField(
fieldName: "profil_settings_email".tr(),
- initialValue: loadedState.user.email),
+ initialValue: loadedState.user.email,
+ readOnly: true,
+ controller: TextEditingController()),
const SizedBox(height: 8),
IntlPhoneField(
title: "profil_settings_phone".tr(),
@@ -83,12 +92,18 @@ class ProfileSettingsPage extends StatelessWidget {
),
const SizedBox(height: 8),
TextFieldWithTrailingIcon(
-
title: "profil_settings_address".tr(),
text:
"${loadedState.user.address.street}, ${loadedState.user.address.city}, ${loadedState.user.address.zipCode}, ${loadedState.user.address.country}",
trailingIcon: "assets/icons/edit-alt.svg",
- onTap: () {},
+ onTap: () {
+ showModalBottomSheet<Address>(
+ context: context,
+ isScrollControlled: true,
+ backgroundColor: Colors.white,
+ builder: (context) =>
+ AddressBottomSheet(user: loadedState.user));
+ },
showTitle: true),
const SizedBox(height: 8),
DateTimePicker(
diff --git a/comwell_key_app/lib/profile_settings/profile_settings_repository.dart b/comwell_key_app/lib/profile_settings/profile_settings_repository.dart
index 87be0d10..986d47f8 100644
--- a/comwell_key_app/lib/profile_settings/profile_settings_repository.dart
+++ b/comwell_key_app/lib/profile_settings/profile_settings_repository.dart
@@ -1,3 +1,4 @@
+import 'package:comwell_key_app/profile_settings/model/address.dart';
import 'package:comwell_key_app/profile_settings/model/user.dart';
import 'package:comwell_key_app/services/api.dart';
import 'package:shared_preferences/shared_preferences.dart';
@@ -14,4 +15,10 @@ class ProfileSettingsRepository {
}
return null;
}
+
+
+
+ Future<void> updateUser(User updatedUser) async {
+
+ }
}
\ No newline at end of file
diff --git a/comwell_key_app/lib/routing/app_router.dart b/comwell_key_app/lib/routing/app_router.dart
index 230285e2..eb76e07b 100644
--- a/comwell_key_app/lib/routing/app_router.dart
+++ b/comwell_key_app/lib/routing/app_router.dart
@@ -4,22 +4,23 @@ import 'package:comwell_key_app/home/home_page.dart';
import 'package:comwell_key_app/key/key_page.dart';
import 'package:comwell_key_app/login/login_page.dart';
import 'package:comwell_key_app/overview/models/booking.dart';
-import 'package:comwell_key_app/overview/models/payment_details.dart';
import 'package:comwell_key_app/overview/overview_page.dart';
import 'package:comwell_key_app/overview/past_cancelled_booking_detail_page.dart';
import 'package:comwell_key_app/profile/profile_page.dart';
+import 'package:comwell_key_app/profile_settings/components/change_password_modal.dart';
import 'package:comwell_key_app/profile_settings/profile_settings_page.dart';
import 'package:comwell_key_app/redeem_debug/redeem_page.dart';
import 'package:comwell_key_app/routing/app_routes.dart';
import 'package:comwell_key_app/utils/stream_to_listenable.dart';
import 'package:go_router/go_router.dart';
import 'package:flutter/material.dart';
+import 'package:flutter/cupertino.dart';
final _rootNavigatorKey = GlobalKey<NavigatorState>();
GoRouter goRouter(AuthenticationBloc authBloc) {
return GoRouter(
- initialLocation: '/login',
+ initialLocation: '/profilesettings',
navigatorKey: _rootNavigatorKey,
debugLogDiagnostics: true,
refreshListenable:
@@ -48,7 +49,19 @@ GoRouter goRouter(AuthenticationBloc authBloc) {
}
return null;
},
- routes: <RouteBase>[
+ routes: <GoRoute>[
+ GoRoute(
+ path: "/profilesettings",
+ name: AppRoutes.profileSettings.name,
+ builder: (context, state) => const ProfileSettingsPage(),
+ routes: [
+ GoRoute(
+ path: 'change_password',
+ name: AppRoutes.changePassword.name,
+ builder: (context, state) {
+ return ChangePasswordModal();
+ })
+ ]),
GoRoute(
path: "/oauthredirect",
name: AppRoutes.overview.name,
@@ -61,11 +74,18 @@ GoRouter goRouter(AuthenticationBloc authBloc) {
return ProfilePage(); //mobileKey: key);
},
routes: [
- GoRoute(
- path: "profilesettings",
- name: AppRoutes.profileSettings.name,
- builder: (context, state) => const ProfileSettingsPage(),
- ),
+ /* GoRoute(
+ path: "profilesettings",
+ name: AppRoutes.profileSettings.name,
+ builder: (context, state) => const ProfileSettingsPage(),
+ routes: [
+ GoRoute(
+ path: 'change_password',
+ name: AppRoutes.changePassword.name,
+ builder: (context, state) {
+ return ChangePasswordModal();
+ })
+ ]), */
],
),
GoRoute(
diff --git a/comwell_key_app/lib/routing/app_routes.dart b/comwell_key_app/lib/routing/app_routes.dart
index 53c8738e..70b8e7d8 100644
--- a/comwell_key_app/lib/routing/app_routes.dart
+++ b/comwell_key_app/lib/routing/app_routes.dart
@@ -11,5 +11,5 @@ enum AppRoutes {
profile,
overview,
profileSettings,
- bookingDetails,
+ bookingDetails, changePassword,
}