Add Nordigen

This commit is contained in:
Hillel Coren 2023-12-26 11:58:52 +02:00
parent 531a48c853
commit 23fd64fec4
1 changed files with 51 additions and 53 deletions

View File

@ -62,7 +62,7 @@ class BankAccountScreen extends StatelessWidget {
final store = StoreProvider.of<AppState>(context);
final state = store.state;
final userCompany = state.userCompany;
final localization = AppLocalization.of(context);
final localization = AppLocalization.of(context)!;
return ListScaffold(
entityType: EntityType.bankAccount,
@ -94,11 +94,10 @@ class BankAccountScreen extends StatelessWidget {
const EdgeInsets.only(left: 16, top: 8, right: 16, bottom: 10),
child: Row(
children: [
if (state.isHosted) ...[
if (state.isEnterprisePlan) ...[
Expanded(
child: AppButton(
label: localization!.connect.toUpperCase(),
label: localization.connect.toUpperCase(),
onPressed: () => connectAccounts(context),
iconData: Icons.link,
),
@ -119,7 +118,7 @@ class BankAccountScreen extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
HelpText(localization!.upgradeToConnectBankAccount),
HelpText(localization.upgradeToConnectBankAccount),
SizedBox(height: 16),
Row(
children: [
@ -145,12 +144,11 @@ class BankAccountScreen extends StatelessWidget {
),
),
SizedBox(width: kGutterWidth),
],
Expanded(
child: AppButton(
label: (state.isHosted
? localization!.rules
: localization!.manageRules)
? localization.rules
: localization.manageRules)
.toUpperCase(),
onPressed: () {
store.dispatch(