6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit cb3ab73e
Changed files
comwell_key_app/lib/home/home_page.dart | 2 +- comwell_key_app/lib/pregistration/components/add_card.dart | 3 ++- comwell_key_app/lib/routing/app_router.dart | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-)
Diff
diff --git a/comwell_key_app/lib/home/home_page.dart b/comwell_key_app/lib/home/home_page.dart
index 1e7ad546..06a36c13 100644
--- a/comwell_key_app/lib/home/home_page.dart
+++ b/comwell_key_app/lib/home/home_page.dart
@@ -121,7 +121,7 @@ class _HomeWidget extends State<HomeWidget> {
const SizedBox(height: 400),
ElevatedButton(
onPressed: () {
- context.push("/prereg");
+ context.push(AppRoutes.preregistration.name);
},
style: ButtonStyle(
backgroundColor:
diff --git a/comwell_key_app/lib/pregistration/components/add_card.dart b/comwell_key_app/lib/pregistration/components/add_card.dart
index 12c75aa3..75ac0935 100644
--- a/comwell_key_app/lib/pregistration/components/add_card.dart
+++ b/comwell_key_app/lib/pregistration/components/add_card.dart
@@ -4,6 +4,7 @@ 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_dotenv/flutter_dotenv.dart';
import 'package:flutter_svg/flutter_svg.dart';
import '../../services/adyen/payment_method.dart';
@@ -18,7 +19,7 @@ class AddCard extends StatelessWidget {
_extractPaymentMethod(cubit.state.availablePaymentMethods);
final config = CardComponentConfiguration(
environment: Environment.test,
- clientKey: "ComwellHotelsECOM",
+ clientKey: dotenv.env['ADYEN_CLIENT_KEY']!,
countryCode: "DK",
shopperLocale: "da-DK",
cardConfiguration:
diff --git a/comwell_key_app/lib/routing/app_router.dart b/comwell_key_app/lib/routing/app_router.dart
index 6ce7c4d0..31f11afa 100644
--- a/comwell_key_app/lib/routing/app_router.dart
+++ b/comwell_key_app/lib/routing/app_router.dart
@@ -139,7 +139,7 @@ GoRouter goRouter(AuthenticationBloc authBloc) {
name: AppRoutes.preregistration.name,
builder: (context,
state) {
- return PreregistrationFlow();
+ return const PreregistrationFlow();
}),
/* GoRoute(