mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
added proper icons for biometrics button
This commit is contained in:
parent
903b39c454
commit
e50855a4c9
5 changed files with 27 additions and 3 deletions
17
assets/svg/faceid.svg
Normal file
17
assets/svg/faceid.svg
Normal file
|
@ -0,0 +1,17 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_1023_80475)">
|
||||
<path d="M9 2H6.9C5.60044 2 4.35411 2.48881 3.43518 3.3589C2.51625 4.22899 2 5.40909 2 6.63958V9" stroke="#232323" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
||||
<path d="M2 15V16.8086C2 18.1854 2.51625 19.5059 3.43518 20.4795C4.35411 21.4531 5.60044 22 6.9 22H9" stroke="#232323" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
||||
<path d="M15 16C14.6414 16.3118 14.1854 16.5637 13.6659 16.7369C13.1464 16.9101 12.5769 17 12 17C11.4231 17 10.8536 16.9101 10.3341 16.7369C9.81462 16.5637 9.35856 16.3118 9 16" stroke="#232323" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
||||
<path d="M7 8V9" stroke="#232323" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
||||
<path d="M15 2H17.1C18.3996 2 19.6459 2.48881 20.5648 3.3589C21.4838 4.22899 22 5.40909 22 6.63958V9" stroke="#232323" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
||||
<path d="M22 15V16.8086C22 18.1854 21.4838 19.5059 20.5648 20.4795C19.6459 21.4531 18.3996 22 17.1 22H15" stroke="#232323" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
||||
<path d="M17 8V9" stroke="#232323" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
||||
<path d="M12 12V9" stroke="#232323" stroke-width="2.5" stroke-linecap="round"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_1023_80475">
|
||||
<rect width="24" height="24" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
|
@ -1,3 +1,5 @@
|
|||
<svg width="40" height="45" viewBox="0 0 40 45" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M32.6361 6.22828C32.4621 6.22828 32.2881 6.18478 32.1358 6.09779C27.9602 3.94471 24.3499 3.03128 20.022 3.03128C15.7159 3.03128 11.6272 4.05345 7.90821 6.09779C7.38625 6.38052 6.7338 6.18478 6.42933 5.66282C6.1466 5.14086 6.34233 4.46667 6.86429 4.18394C10.9095 1.98736 15.3461 0.856445 20.022 0.856445C24.6544 0.856445 28.6996 1.87862 33.1363 4.16219C33.68 4.44492 33.8757 5.09737 33.593 5.61933C33.3972 6.0108 33.0275 6.22828 32.6361 6.22828V6.22828ZM1.51421 17.6461C1.29672 17.6461 1.07924 17.5809 0.883507 17.4504C0.383295 17.1024 0.274553 16.4282 0.622526 15.928C2.77561 12.8833 5.5159 10.491 8.77815 8.81633C15.6071 5.2931 24.3499 5.27135 31.2007 8.79458C34.4629 10.4692 37.2032 12.8398 39.3563 15.8628C39.7043 16.3412 39.5955 17.0372 39.0953 17.3852C38.5951 17.7331 37.9209 17.6244 37.5729 17.1242C35.6156 14.3839 33.1363 12.2308 30.2002 10.7302C23.9585 7.53318 15.9768 7.53318 9.75682 10.7519C6.79905 12.2743 4.31974 14.4491 2.36239 17.1894C2.18841 17.4939 1.86218 17.6461 1.51421 17.6461V17.6461ZM15.1069 43.8964C14.8242 43.8964 14.5415 43.7876 14.3457 43.5701C12.4536 41.678 11.4314 40.4601 9.9743 37.8286C8.47367 35.1535 7.69073 31.8913 7.69073 28.3898C7.69073 21.9306 13.2148 16.6675 20.0003 16.6675C26.7858 16.6675 32.3098 21.9306 32.3098 28.3898C32.3098 28.9988 31.8314 29.4772 31.2224 29.4772C30.6135 29.4772 30.135 28.9988 30.135 28.3898C30.135 23.1267 25.5896 18.8423 20.0003 18.8423C14.411 18.8423 9.86556 23.1267 9.86556 28.3898C9.86556 31.5216 10.5615 34.4141 11.8882 36.7629C13.28 39.264 14.237 40.3296 15.9116 42.026C16.3248 42.461 16.3248 43.1352 15.9116 43.5701C15.6724 43.7876 15.3896 43.8964 15.1069 43.8964ZM30.7005 39.8729C28.1124 39.8729 25.8288 39.2205 23.9585 37.9373C20.718 35.7407 18.7824 32.174 18.7824 28.3898C18.7824 27.7809 19.2608 27.3024 19.8698 27.3024C20.4787 27.3024 20.9572 27.7809 20.9572 28.3898C20.9572 31.4563 22.5231 34.3489 25.1764 36.1322C26.7205 37.1761 28.5256 37.6763 30.7005 37.6763C31.2224 37.6763 32.0923 37.6111 32.9623 37.4589C33.5495 37.3501 34.1149 37.7416 34.2237 38.3505C34.3324 38.9378 33.9409 39.5032 33.332 39.6119C32.0923 39.8512 31.0049 39.8729 30.7005 39.8729V39.8729ZM26.329 44.3531C26.242 44.3531 26.1333 44.3313 26.0463 44.3096C22.5883 43.3527 20.3265 42.0695 17.9559 39.7424C14.9112 36.7194 13.2366 32.696 13.2366 28.3898C13.2366 24.8666 16.2378 21.9958 19.935 21.9958C23.6322 21.9958 26.6335 24.8666 26.6335 28.3898C26.6335 30.7169 28.6561 32.609 31.1572 32.609C33.6582 32.609 35.6808 30.7169 35.6808 28.3898C35.6808 20.1907 28.6126 13.5357 19.9133 13.5357C13.7368 13.5357 8.0822 16.9719 5.53765 22.3003C4.68946 24.0619 4.2545 26.128 4.2545 28.3898C4.2545 30.0862 4.40673 32.7612 5.71163 36.241C5.92912 36.8064 5.64639 37.4371 5.08093 37.6329C4.51548 37.8503 3.88477 37.5459 3.68904 37.0022C2.62337 34.1531 2.10141 31.3258 2.10141 28.3898C2.10141 25.78 2.60162 23.4095 3.5803 21.3434C6.47282 15.2756 12.8886 11.3391 19.9133 11.3391C29.8088 11.3391 37.8556 18.9728 37.8556 28.3681C37.8556 31.8913 34.8544 34.7621 31.1572 34.7621C27.4599 34.7621 24.4587 31.8913 24.4587 28.3681C24.4587 26.041 22.4361 24.1489 19.935 24.1489C17.434 24.1489 15.4114 26.041 15.4114 28.3681C15.4114 32.087 16.8468 35.5668 19.4783 38.1766C21.5444 40.2209 23.5235 41.3518 26.59 42.2C27.1772 42.3522 27.5034 42.9612 27.3512 43.5266C27.2425 44.0269 26.7858 44.3531 26.329 44.3531V44.3531Z" fill="#1A73E8"/>
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M7 3C7 3 11.2308 0.750557 17 2.99876" stroke="#232323" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
||||
<path d="M5 8C5 8 10.9231 3.50111 19 7.99752" stroke="#232323" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
||||
<path d="M14.8112 22C14.8112 22 13.1852 21.8081 11.3534 20.1185C10.4045 19.2225 9.80215 18.0577 9.64132 16.8076C9.57137 16.3404 9.61834 15.8644 9.77855 15.4169C10.5987 13.2245 13.3568 13.3774 14.0613 15.2399C14.0992 15.3403 14.1239 15.4447 14.1347 15.5508C14.1793 15.936 14.2648 16.3161 14.39 16.6856C14.39 16.6856 14.9915 18.173 16.6989 18.118C16.6989 18.118 17.8158 18.0867 18.3535 17.4516C20.1582 15.3485 17.6116 12.5433 17.6116 12.5433C14.4825 8.89181 9.91098 10.2453 9.91098 10.2453C9.91098 10.2453 6.85373 10.9355 5.54211 13.5547C4.23049 16.174 5.71124 19.586 5.71124 19.586" stroke="#232323" stroke-width="2.5" stroke-miterlimit="10" stroke-linecap="round"/>
|
||||
</svg>
|
||||
|
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 1 KiB |
|
@ -1,4 +1,5 @@
|
|||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
@ -208,7 +209,9 @@ class _LockscreenViewState extends ConsumerState<LockscreenView> {
|
|||
CustomPinPut(
|
||||
customKey: CustomKey(
|
||||
onPressed: _checkUseBiometrics,
|
||||
iconAssetName: Assets.svg.fingerprint,
|
||||
iconAssetName: Platform.isIOS
|
||||
? Assets.svg.faceId
|
||||
: Assets.svg.fingerprint,
|
||||
),
|
||||
fieldsCount: Constants.pinLength,
|
||||
eachFieldHeight: 12,
|
||||
|
|
|
@ -201,6 +201,7 @@ class _SVG {
|
|||
String get robotHead => "assets/svg/robot-head.svg";
|
||||
String get whirlPool => "assets/svg/whirlpool.svg";
|
||||
String get fingerprint => "assets/svg/fingerprint.svg";
|
||||
String get faceId => "assets/svg/faceid.svg";
|
||||
|
||||
String get ellipse1 => "assets/svg/Ellipse-43.svg";
|
||||
String get ellipse2 => "assets/svg/Ellipse-42.svg";
|
||||
|
|
|
@ -303,6 +303,7 @@ flutter:
|
|||
- assets/svg/robot-head.svg
|
||||
- assets/svg/whirlpool.svg
|
||||
- assets/svg/fingerprint.svg
|
||||
- assets/svg/faceid.svg
|
||||
# light theme coin
|
||||
- assets/images/light/stack.png
|
||||
- assets/images/light/monero.png
|
||||
|
|
Loading…
Reference in a new issue