Remove unnecessary usage of spread operator.

This commit is contained in:
Elias Bonnici 2023-12-20 14:36:46 +01:00
parent 7e384dae2e
commit 06c33e6205
No known key found for this signature in database
GPG Key ID: 5EAC28EA3F980CCF

View File

@ -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),
),
]
)
],
);
}