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
@@ -286,6 +286,40 @@ class _TeacherMonetizationTabState extends State<TeacherMonetizationTab> {
Widget build(BuildContext context) {
return BlocBuilder<TeacherMonetizationCubit, TeacherMonetizationState>(
builder: (context, state) {
if (state.financialUnavailable) {
return Center(
child: Padding(
padding: const EdgeInsets.all(24),
child: Container(
padding: const EdgeInsets.all(20),
decoration: BoxDecoration(
color: TeacherTheme.surfaceCard,
borderRadius: BorderRadius.circular(18),
border: Border.all(color: TeacherTheme.surfaceBorder),
),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
const Icon(CupertinoIcons.lock_circle_fill,
color: TeacherTheme.royalGold, size: 34),
const SizedBox(height: 12),
const Text('الأرباح والسحب غير متاحين حالياً',
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white,
fontSize: 16,
fontWeight: FontWeight.w800)),
const SizedBox(height: 8),
Text(state.financialMessage,
textAlign: TextAlign.center,
style: const TextStyle(
color: Color(0xFF94A3B8), fontSize: 13)),
],
),
),
),
);
}
return SingleChildScrollView(
padding: const EdgeInsets.all(16),
child: Column(