Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix: Updated fingerprint icon & button label & padding
Browse files Browse the repository at this point in the history
  • Loading branch information
reasje committed Oct 4, 2023
1 parent 84d183b commit 8fb53dd
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 30 deletions.
4 changes: 0 additions & 4 deletions lib/common/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ class Config {
'0x52f72a3c94a6ffca3f8caf769e14015fd040b0cd';
static const String mxcAddressEthereum =
'0x5Ca381bBfb58f0092df149bD3D243b08B9a8386e';
static const List<String> reloadDapp = [
"https://erc20.mxc.com",
"https://wannsee-erc20.mxc.com"
];

static String mainnetMns(String name) =>
'https://mns.mxc.com/$name.mxc/register';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,24 @@ class SetupEnableBiometricPage extends HookConsumerWidget {
layout: LayoutType.column,
presenter: presenter,
useSplashBackground: true,
footer: Padding(
padding: const EdgeInsets.symmetric(horizontal: 24),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
MxcButton.primaryWhite(
key: const ValueKey('useBiometricButton'),
title: FlutterI18n.translate(context, 'use_biometric')
.replaceFirst(
'{0}',
FlutterI18n.translate(
context, presenter.getAppBarTitle())),
onTap: () => presenter.authenticateBiometrics(),
),
MxcButton.plainWhite(
key: const ValueKey('createPasscodeButton'),
title: FlutterI18n.translate(context, 'create_passcode'),
onTap: () => presenter.createPasscode(),
),
],
),
childrenPadding: const EdgeInsets.symmetric(horizontal: 24),
footer: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
MxcButton.primaryWhite(
key: const ValueKey('useBiometricButton'),
title: FlutterI18n.translate(context, 'use_biometric').replaceFirst(
'{0}',
FlutterI18n.translate(context, presenter.getAppBarTitle())
.toLowerCase()),
onTap: () => presenter.authenticateBiometrics(),
),
MxcButton.plainWhite(
key: const ValueKey('createPasscodeButton'),
title: FlutterI18n.translate(context, 'create_passcode'),
onTap: () => presenter.createPasscode(),
),
],
),
children: [
const SizedBox(height: 75),
Expand All @@ -58,8 +55,10 @@ class SetupEnableBiometricPage extends HookConsumerWidget {
),
Text(
FlutterI18n.translate(context, 'use_biometric_or_passcode')
.replaceFirst('{0}',
FlutterI18n.translate(context, presenter.getAppBarTitle())),
.replaceFirst(
'{0}',
FlutterI18n.translate(context, presenter.getAppBarTitle())
.toLowerCase()),
style: FontTheme.of(context).h6.white(),
textAlign: TextAlign.center,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ class SetupEnableBiometricPresenter extends CompletePresenter<void> {
SetupEnableBiometricPresenter() : super(null);

String getAppBarTitle() => (Platform.isAndroid)
? 'biometrics'
? 'fingerprint'
: Biometric.iosSystemBiometric == BiometricType.face
? 'face_id'
: 'touch_id';

String getSvg() => (Platform.isAndroid)
? 'assets/svg/security/ic_face_touch_id.svg'
? 'assets/svg/security/ic_fingerprint.svg'
: Biometric.iosSystemBiometric == BiometricType.face
? 'assets/svg/security/ic_biometric.svg'
: 'assets/svg/security/ic_touch_id.svg';
Expand Down
2 changes: 1 addition & 1 deletion packages/shared
Submodule shared updated 26 files
+24 −29 logic/lib/src/domain/const/config.dart
+11 −0 logic/lib/src/domain/const/urls.dart
+252 −250 logic/lib/src/domain/entities/app_version/app_version.dart
+50 −51 logic/lib/src/domain/entities/app_version/distribution_group.dart
+29 −28 logic/lib/src/domain/entities/app_version/owner.dart
+93 −92 logic/lib/src/domain/entities/dapp_info/app.dart
+24 −23 logic/lib/src/domain/entities/dapp_info/body.dart
+42 −41 logic/lib/src/domain/entities/dapp_info/developer.dart
+32 −31 logic/lib/src/domain/entities/dapp_info/en.dart
+32 −31 logic/lib/src/domain/entities/dapp_info/es.dart
+32 −31 logic/lib/src/domain/entities/dapp_info/headers.dart
+36 −35 logic/lib/src/domain/entities/dapp_info/localizations.dart
+58 −57 logic/lib/src/domain/entities/dapp_info/permissions.dart
+59 −58 logic/lib/src/domain/entities/dapp_info/review_api.dart
+35 −34 logic/lib/src/domain/entities/dapp_info/support.dart
+32 −32 logic/lib/src/domain/entities/dapp_store/dapp_item.dart
+34 −34 logic/lib/src/domain/entities/dapp_store/dapp_store.dart
+1 −1 logic/lib/src/domain/entities/default_ipfs_gateways/default_ipfs_gateways.dart
+10 −1 logic/lib/src/domain/entities/default_tokens/token.dart
+1 −0 logic/lib/src/domain/entities/entities.dart
+0 −1 logic/lib/src/domain/entities/network.dart
+3 −1 logic/lib/src/domain/entities/wannsee/wannsee_transactions_model/wannsee_transaction_model.dart
+55 −0 logic/lib/src/domain/entities/watch_asset_model.dart
+1 −1 logic/lib/src/domain/repositories/wallet/dapp_store.dart
+2 −2 logic/lib/src/domain/repositories/wallet/nft_contract.dart
+9 −9 logic/lib/src/domain/repositories/wallet/token_contract.dart

0 comments on commit 8fb53dd

Please sign in to comment.