hideBothSliders method

Future<void> hideBothSliders()

Implementation

Future<void> hideBothSliders() async {
  // إخفاء السلايدر العلوي والسفلي بالتوازي
  // Hide top and bottom sliders in parallel
  List<Future<void>> hideAnimations = [];

  if (isVisible.value) {
    hideAnimations.add(hideWithAnimation());
  }

  if (isBottomVisible.value) {
    hideAnimations.add(hideBottomWithAnimation());
  }

  // انتظار انتهاء جميع الأنيميشنز
  // Wait for all animations to complete
  if (hideAnimations.isNotEmpty) {
    await Future.wait(hideAnimations);
  }

  log('Both sliders hidden with animation', name: 'QuranUi');
}