fix(student_app): remove duplicate _showNoVideoAvailableSheet declaration in subject_hub_screen.dart

This commit is contained in:
Hamza-Ayed
2026-09-09 01:36:06 +03:00
parent 78ad245ee5
commit 432ca50204
@@ -860,94 +860,4 @@ class _SubjectHubScreenState extends State<SubjectHubScreen> 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(),
),
),
],
),
),
),
);
}
} }