mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 17:11:14 +00:00
feat: Add animation to the recovery key screen (#410)
https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.app/issues/164 Co-authored-by: dettlaff <dettlaff@riseup.net> Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.app/pulls/410 Reviewed-by: NaiJi ✨ <naiji@noreply.git.selfprivacy.org> Reviewed-by: Inex Code <inex.code@selfprivacy.org> Co-authored-by: def <dettlaff@riseup.net> Co-committed-by: def <dettlaff@riseup.net>
This commit is contained in:
parent
20d7f37b8b
commit
d7bf6a0c06
|
@ -89,10 +89,14 @@ class _RecoveryKeyContentState extends State<RecoveryKeyContent> {
|
|||
children: [
|
||||
if (keyStatus.exists) RecoveryKeyStatusCard(isValid: keyStatus.isValid),
|
||||
const SizedBox(height: 16),
|
||||
if (keyStatus.exists && !_isConfigurationVisible)
|
||||
RecoveryKeyInformation(state: keyStatus),
|
||||
if (_isConfigurationVisible || !keyStatus.exists)
|
||||
const RecoveryKeyConfiguration(),
|
||||
AnimatedCrossFade(
|
||||
duration: const Duration(milliseconds: 300),
|
||||
firstChild: RecoveryKeyInformation(state: keyStatus),
|
||||
secondChild: const RecoveryKeyConfiguration(),
|
||||
crossFadeState: _isConfigurationVisible || !keyStatus.exists
|
||||
? CrossFadeState.showSecond
|
||||
: CrossFadeState.showFirst,
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
if (!_isConfigurationVisible && keyStatus.isValid && keyStatus.exists)
|
||||
BrandButton.text(
|
||||
|
|
Loading…
Reference in a new issue