Implement verified curriculum, video review, watch sessions, ledger safeguards, and remove demo data

This commit is contained in:
Hamza-Ayed
2026-09-09 17:04:08 +03:00
parent 0dc5df7b5e
commit 5af684a892
49 changed files with 1809 additions and 3005 deletions
@@ -35,6 +35,7 @@ class SocraticVideoPlayerScreen extends StatefulWidget {
final SubjectModel? subject;
final String? instructorName;
final String? videoSourceLabel;
final String? selectedVideoVersionId;
const SocraticVideoPlayerScreen({
super.key,
@@ -42,6 +43,7 @@ class SocraticVideoPlayerScreen extends StatefulWidget {
this.subject,
this.instructorName,
this.videoSourceLabel,
this.selectedVideoVersionId,
});
@override
@@ -127,7 +129,7 @@ class _SocraticVideoPlayerScreenState extends State<SocraticVideoPlayerScreen> w
@override
void initState() {
super.initState();
context.read<VideoPlaybackCubit>().loadLesson(widget.lesson, subject: widget.subject);
context.read<VideoPlaybackCubit>().loadLesson(widget.lesson, subject: widget.subject, selectedVideoVersionId: widget.selectedVideoVersionId);
// Dynamic Floating Forensic Anti-Piracy Watermark Animation
_watermarkController = AnimationController(
@@ -156,6 +158,7 @@ class _SocraticVideoPlayerScreenState extends State<SocraticVideoPlayerScreen> w
@override
void dispose() {
context.read<VideoPlaybackCubit>().endWatchSession();
_tts.stop();
_playbackTicker?.cancel();
_controlsHideTimer?.cancel();