mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-23 18:22:39 +03:00
Remove unnecessary usage of spread operator.
This commit is contained in:
parent
7e384dae2e
commit
06c33e6205
@ -218,14 +218,13 @@ class _AddFingerprintDialogState extends ConsumerState<AddFingerprintDialog>
|
||||
},
|
||||
),
|
||||
),
|
||||
if (_fingerprint == null) ...[
|
||||
if (_fingerprint == null)
|
||||
Container(
|
||||
constraints: const BoxConstraints(maxWidth: 360),
|
||||
child: LinearProgressIndicator(
|
||||
value: progress,
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
if (_fingerprint != null) ...[
|
||||
Text(
|
||||
l10n.l_name_fingerprint,
|
||||
@ -271,12 +270,11 @@ class _AddFingerprintDialogState extends ConsumerState<AddFingerprintDialog>
|
||||
_subscription.cancel();
|
||||
},
|
||||
actions: [
|
||||
if (_fingerprint != null) ...[
|
||||
if (_fingerprint != null)
|
||||
TextButton(
|
||||
onPressed: _label.isNotEmpty ? _submit : null,
|
||||
child: Text(l10n.s_save),
|
||||
),
|
||||
]
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user