fix: from reviewer

pull/410/head
dettlaff 2023-12-22 05:36:38 +04:00
parent 40e09fcbbb
commit 6f878abccb
1 changed files with 2 additions and 6 deletions

View File

@ -91,12 +91,8 @@ class _RecoveryKeyContentState extends State<RecoveryKeyContent> {
const SizedBox(height: 16),
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(),
firstChild: RecoveryKeyInformation(state: keyStatus),
secondChild: const RecoveryKeyConfiguration(),
crossFadeState: _isConfigurationVisible || !keyStatus.exists
? CrossFadeState.showSecond
: CrossFadeState.showFirst,