mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-15 21:23:17 +00:00
feat: add animation recovery menu
- Resolve https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.app/issues/164
This commit is contained in:
parent
2f6b4e0f9c
commit
40e09fcbbb
|
@ -89,10 +89,18 @@ 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: keyStatus.exists && !_isConfigurationVisible
|
||||
? RecoveryKeyInformation(state: keyStatus)
|
||||
: const SizedBox.shrink(),
|
||||
secondChild: _isConfigurationVisible || !keyStatus.exists
|
||||
? const RecoveryKeyConfiguration()
|
||||
: const SizedBox.shrink(),
|
||||
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