Skip to content

Commit

Permalink
Remove unnecessary usage of spread operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
elibon99 committed Dec 20, 2023
1 parent 3d5cc85 commit 4e9742c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/fido/views/add_fingerprint_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,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,
Expand Down Expand Up @@ -264,12 +263,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),
),
]
)
],
);
}
Expand Down

0 comments on commit 4e9742c

Please # to comment.