Skip to content

Commit

Permalink
add more keys to as parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
emad-deriv committed Jul 11, 2024
1 parent 84c4380 commit 1f926ed
Showing 1 changed file with 31 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ class EffortlessPasskeysPage extends StatelessWidget
Text(
context.derivPasskeysLocalizations
.effortlessLoginWithPasskeys,
key: const ValueKey<String>(
'passkey_login_effortless_login'),
key: effortlessPasskeysPageKeys
?.loginWithPasskeyTextKey,
style: const TextStyle(fontSize: 20),
),
const SizedBox(
Expand All @@ -139,8 +139,8 @@ class EffortlessPasskeysPage extends StatelessWidget
text: context
.derivPasskeysLocalizations
.noNeedToRememberPassword,
textKey: const ValueKey<String>(
'passkey_login_no_need'),
textKey: effortlessPasskeysPageKeys
?.noNeedToRememberPasswordRowKey,
),
Divider(
color: context.theme.colors.hover,
Expand All @@ -150,8 +150,8 @@ class EffortlessPasskeysPage extends StatelessWidget
text: context
.derivPasskeysLocalizations
.syncAcrossDevices,
textKey: const ValueKey<String>(
'passkey_login_sync'),
textKey: effortlessPasskeysPageKeys
?.syncAcrossDevicesRowKey,
),
Divider(
color: context.theme.colors.hover,
Expand All @@ -161,8 +161,8 @@ class EffortlessPasskeysPage extends StatelessWidget
text: context
.derivPasskeysLocalizations
.useYourBiometrics,
textKey: const ValueKey<String>(
'passkey_login_biometrics'),
textKey: effortlessPasskeysPageKeys
?.useBiometricsRowKey,
),
Divider(
color: context.theme.colors.hover,
Expand Down Expand Up @@ -218,9 +218,9 @@ class EffortlessPasskeysPage extends StatelessWidget
style: TextStyle(
color: context.theme
.colors.coral),
key: const ValueKey<
String>(
'passkey_login_here_rich_text'),
key:
effortlessPasskeysPageKeys
?.hereRichTextKey,
),
),
),
Expand Down Expand Up @@ -272,6 +272,11 @@ class EffortlessPasskeysPageKeys {
this.createPasskeyButtonKey,
this.hyperlinkInkWellKey,
this.maybeLaterTextButtonKey,
this.loginWithPasskeyTextKey,
this.noNeedToRememberPasswordRowKey,
this.syncAcrossDevicesRowKey,
this.useBiometricsRowKey,
this.hereRichTextKey,
});

/// Key for create passkey button widget.
Expand All @@ -282,4 +287,19 @@ class EffortlessPasskeysPageKeys {

/// Key for maybe later text button widget.
final Key? maybeLaterTextButtonKey;

/// Key for login with passkey text widget.
final Key? loginWithPasskeyTextKey;

/// Key for no need to remember password row widget.
final Key? noNeedToRememberPasswordRowKey;

/// Key for sync across devices row widget.
final Key? syncAcrossDevicesRowKey;

/// Key for use biometrics row widget.
final Key? useBiometricsRowKey;

/// Key for here rich text widget.
final Key? hereRichTextKey;
}

0 comments on commit 1f926ed

Please sign in to comment.