From 432ca50204693d040c820cf1c997020ab9867395 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Wed, 9 Sep 2026 01:36:06 +0300 Subject: [PATCH] fix(student_app): remove duplicate _showNoVideoAvailableSheet declaration in subject_hub_screen.dart --- .../curriculum/subject_hub_screen.dart | 90 ------------------- 1 file changed, 90 deletions(-) diff --git a/apps/student_app/lib/presentation/screens/curriculum/subject_hub_screen.dart b/apps/student_app/lib/presentation/screens/curriculum/subject_hub_screen.dart index 6fe2fc0..e1b65a7 100644 --- a/apps/student_app/lib/presentation/screens/curriculum/subject_hub_screen.dart +++ b/apps/student_app/lib/presentation/screens/curriculum/subject_hub_screen.dart @@ -860,94 +860,4 @@ class _SubjectHubScreenState extends State with SingleTickerPr ), ); } - - /// Luxury Modal Sheet when a lesson has no uploaded video yet - void _showNoVideoAvailableSheet(BuildContext context, CurriculumLessonItemModel lesson) { - showCupertinoModalPopup( - context: context, - builder: (ctx) => Container( - padding: const EdgeInsets.fromLTRB(24, 16, 24, 32), - decoration: BoxDecoration( - color: const Color(0xFF0F172A), - borderRadius: const BorderRadius.vertical(top: Radius.circular(28)), - border: Border.all(color: Colors.white12), - ), - child: SafeArea( - top: false, - child: Column( - mainAxisSize: MainAxisSize.min, - children: [ - // Drag Indicator - Container( - width: 40, - height: 4, - margin: const EdgeInsets.only(bottom: 20), - decoration: BoxDecoration( - color: Colors.white24, - borderRadius: BorderRadius.circular(2), - ), - ), - // Icon - Container( - width: 64, - height: 64, - decoration: BoxDecoration( - color: AppColors.saqelCyan.withAlpha(20), - shape: BoxShape.circle, - border: Border.all(color: AppColors.saqelCyan.withAlpha(60)), - ), - child: const Icon( - CupertinoIcons.film, - color: AppColors.saqelCyan, - size: 32, - ), - ), - const SizedBox(height: 16), - // Title - const Text( - 'فيديو الشرح قيد الإنتاج والمراجعة', - textAlign: TextAlign.center, - style: TextStyle( - color: Colors.white, - fontSize: 18, - fontWeight: FontWeight.bold, - ), - ), - const SizedBox(height: 8), - // Lesson title - Text( - lesson.title, - textAlign: TextAlign.center, - style: const TextStyle( - color: AppColors.saqelCyan, - fontSize: 13, - fontWeight: FontWeight.w600, - ), - ), - const SizedBox(height: 12), - // Explanation - const Text( - 'لم يقم المعلم برفع ونشر فيديو الشرح لهذا الدرس بعد.\nسيتاح فور اعتماده من الإشراف الأكاديمي. يمكنك حالياً الاستفادة من أوراق العمل والملخصات والأنشطة التفاعلية في التبويبات المجاورة.', - textAlign: TextAlign.center, - style: TextStyle( - color: AppColors.textSecondaryDark, - fontSize: 13, - height: 1.5, - ), - ), - const SizedBox(height: 24), - // Action Button - SizedBox( - width: double.infinity, - child: LuxuryButton( - text: 'حسناً، فهمت ذلك', - onPressed: () => Navigator.of(ctx).pop(), - ), - ), - ], - ), - ), - ), - ); - } }