mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 00:12:09 +03:00
fix code style
This commit is contained in:
parent
815150d113
commit
5637d906f9
@ -124,10 +124,11 @@ class _ResetDialogState extends ConsumerState<ResetDialog> {
|
|||||||
!ref.watch(rpcStateProvider.select((state) => state.isAdmin));
|
!ref.watch(rpcStateProvider.select((state) => state.isAdmin));
|
||||||
|
|
||||||
// show the progress widgets on desktop, or on Android when using USB
|
// show the progress widgets on desktop, or on Android when using USB
|
||||||
final showFidoResetProgress = !Platform.isAndroid ||
|
final showResetProgress = _resetting &&
|
||||||
(Platform.isAndroid &&
|
(!Platform.isAndroid ||
|
||||||
(ref.read(currentDeviceProvider)?.transport == Transport.usb ||
|
(Platform.isAndroid &&
|
||||||
_currentStep == _totalSteps));
|
(ref.read(currentDeviceProvider)?.transport == Transport.usb ||
|
||||||
|
_currentStep == _totalSteps)));
|
||||||
|
|
||||||
return ResponsiveDialog(
|
return ResponsiveDialog(
|
||||||
title: Text(l10n.s_factory_reset),
|
title: Text(l10n.s_factory_reset),
|
||||||
@ -328,13 +329,11 @@ class _ResetDialogState extends ConsumerState<ResetDialog> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
if (_resetting)
|
if (showResetProgress)
|
||||||
if (_application == Capability.fido2 &&
|
if (_application == Capability.fido2 && _currentStep >= 0) ...[
|
||||||
_currentStep >= 0 &&
|
|
||||||
showFidoResetProgress) ...[
|
|
||||||
Text('${l10n.s_status}: ${_getMessage()}'),
|
Text('${l10n.s_status}: ${_getMessage()}'),
|
||||||
LinearProgressIndicator(value: progress),
|
LinearProgressIndicator(value: progress),
|
||||||
] else if (showFidoResetProgress)
|
] else
|
||||||
const LinearProgressIndicator()
|
const LinearProgressIndicator()
|
||||||
]
|
]
|
||||||
.map((e) => Padding(
|
.map((e) => Padding(
|
||||||
|
Loading…
Reference in New Issue
Block a user