mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-24 02:33:44 +03:00
added icons to all textfields
This commit is contained in:
parent
776cf12b94
commit
fd851a35a1
@ -164,6 +164,7 @@ class _AddFingerprintDialogState extends ConsumerState<AddFingerprintDialog>
|
|||||||
enabled: _fingerprint != null,
|
enabled: _fingerprint != null,
|
||||||
border: const OutlineInputBorder(),
|
border: const OutlineInputBorder(),
|
||||||
labelText: 'Name',
|
labelText: 'Name',
|
||||||
|
prefixIcon: const Icon(Icons.fingerprint_outlined),
|
||||||
),
|
),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
@ -165,6 +165,7 @@ class _PinEntryFormState extends ConsumerState<_PinEntryForm> {
|
|||||||
helperText: '', // Prevents dialog resizing
|
helperText: '', // Prevents dialog resizing
|
||||||
errorText: _pinIsWrong ? _getErrorText() : null,
|
errorText: _pinIsWrong ? _getErrorText() : null,
|
||||||
errorMaxLines: 3,
|
errorMaxLines: 3,
|
||||||
|
prefixIcon: const Icon(Icons.pin_outlined),
|
||||||
suffixIcon: IconButton(
|
suffixIcon: IconButton(
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
_isObscure ? Icons.visibility : Icons.visibility_off,
|
_isObscure ? Icons.visibility : Icons.visibility_off,
|
||||||
|
@ -61,6 +61,7 @@ class _FidoPinDialogState extends ConsumerState<FidoPinDialog> {
|
|||||||
labelText: 'Current PIN',
|
labelText: 'Current PIN',
|
||||||
errorText: _currentIsWrong ? _currentPinError : null,
|
errorText: _currentIsWrong ? _currentPinError : null,
|
||||||
errorMaxLines: 3,
|
errorMaxLines: 3,
|
||||||
|
prefixIcon: const Icon(Icons.pin_outlined),
|
||||||
),
|
),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
@ -82,6 +83,7 @@ class _FidoPinDialogState extends ConsumerState<FidoPinDialog> {
|
|||||||
enabled: !hasPin || _currentPin.isNotEmpty,
|
enabled: !hasPin || _currentPin.isNotEmpty,
|
||||||
errorText: _newIsWrong ? _newPinError : null,
|
errorText: _newIsWrong ? _newPinError : null,
|
||||||
errorMaxLines: 3,
|
errorMaxLines: 3,
|
||||||
|
prefixIcon: const Icon(Icons.pin_outlined),
|
||||||
),
|
),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
@ -96,6 +98,7 @@ class _FidoPinDialogState extends ConsumerState<FidoPinDialog> {
|
|||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: const OutlineInputBorder(),
|
border: const OutlineInputBorder(),
|
||||||
labelText: 'Confirm PIN',
|
labelText: 'Confirm PIN',
|
||||||
|
prefixIcon: const Icon(Icons.pin_outlined),
|
||||||
enabled:
|
enabled:
|
||||||
(!hasPin || _currentPin.isNotEmpty) && _newPin.isNotEmpty,
|
(!hasPin || _currentPin.isNotEmpty) && _newPin.isNotEmpty,
|
||||||
),
|
),
|
||||||
|
@ -63,6 +63,7 @@ class _RenameAccountDialogState extends ConsumerState<RenameFingerprintDialog> {
|
|||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
border: OutlineInputBorder(),
|
border: OutlineInputBorder(),
|
||||||
labelText: 'Label',
|
labelText: 'Label',
|
||||||
|
prefixIcon: Icon(Icons.fingerprint_outlined),
|
||||||
),
|
),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
@ -70,6 +70,7 @@ class _ManagePasswordDialogState extends ConsumerState<ManagePasswordDialog> {
|
|||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: const OutlineInputBorder(),
|
border: const OutlineInputBorder(),
|
||||||
labelText: 'Current password',
|
labelText: 'Current password',
|
||||||
|
prefixIcon: const Icon(Icons.password_outlined),
|
||||||
errorText: _currentIsWrong ? 'Wrong password' : null,
|
errorText: _currentIsWrong ? 'Wrong password' : null,
|
||||||
errorMaxLines: 3),
|
errorMaxLines: 3),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
@ -125,6 +126,7 @@ class _ManagePasswordDialogState extends ConsumerState<ManagePasswordDialog> {
|
|||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: const OutlineInputBorder(),
|
border: const OutlineInputBorder(),
|
||||||
labelText: 'New password',
|
labelText: 'New password',
|
||||||
|
prefixIcon: const Icon(Icons.password_outlined),
|
||||||
enabled: !widget.state.hasKey || _currentPassword.isNotEmpty,
|
enabled: !widget.state.hasKey || _currentPassword.isNotEmpty,
|
||||||
),
|
),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
@ -138,6 +140,7 @@ class _ManagePasswordDialogState extends ConsumerState<ManagePasswordDialog> {
|
|||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: const OutlineInputBorder(),
|
border: const OutlineInputBorder(),
|
||||||
labelText: 'Confirm password',
|
labelText: 'Confirm password',
|
||||||
|
prefixIcon: const Icon(Icons.password_outlined),
|
||||||
enabled: (!widget.state.hasKey || _currentPassword.isNotEmpty) &&
|
enabled: (!widget.state.hasKey || _currentPassword.isNotEmpty) &&
|
||||||
_newPassword.isNotEmpty,
|
_newPassword.isNotEmpty,
|
||||||
),
|
),
|
||||||
|
@ -253,6 +253,7 @@ class _UnlockFormState extends ConsumerState<_UnlockForm> {
|
|||||||
labelText: 'Password',
|
labelText: 'Password',
|
||||||
errorText: _passwordIsWrong ? 'Wrong password' : null,
|
errorText: _passwordIsWrong ? 'Wrong password' : null,
|
||||||
helperText: '', // Prevents resizing when errorText shown
|
helperText: '', // Prevents resizing when errorText shown
|
||||||
|
prefixIcon: const Icon(Icons.password_outlined),
|
||||||
suffixIcon: IconButton(
|
suffixIcon: IconButton(
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
_isObscure ? Icons.visibility : Icons.visibility_off,
|
_isObscure ? Icons.visibility : Icons.visibility_off,
|
||||||
|
@ -85,6 +85,7 @@ class _RenameAccountDialogState extends ConsumerState<RenameAccountDialog> {
|
|||||||
border: OutlineInputBorder(),
|
border: OutlineInputBorder(),
|
||||||
labelText: 'Issuer (optional)',
|
labelText: 'Issuer (optional)',
|
||||||
helperText: '', // Prevents dialog resizing when enabled = false
|
helperText: '', // Prevents dialog resizing when enabled = false
|
||||||
|
prefixIcon: Icon(Icons.business_outlined),
|
||||||
),
|
),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
@ -100,6 +101,7 @@ class _RenameAccountDialogState extends ConsumerState<RenameAccountDialog> {
|
|||||||
labelText: 'Account name',
|
labelText: 'Account name',
|
||||||
helperText: '', // Prevents dialog resizing when enabled = false
|
helperText: '', // Prevents dialog resizing when enabled = false
|
||||||
errorText: isValid ? null : 'Your account must have a name',
|
errorText: isValid ? null : 'Your account must have a name',
|
||||||
|
prefixIcon: const Icon(Icons.people_alt_outlined),
|
||||||
),
|
),
|
||||||
onChanged: (value) {
|
onChanged: (value) {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
Loading…
Reference in New Issue
Block a user