mirrored_repositories/lifeclass/lib/pages/content/lessons
import 'package:flutter/material.dart';
import 'package:lifeclass/pages/content/lessons/components/SubHeadings.dart';
import '../../../../classes/clsListItemTextSpanAttributes.dart';
import '../../../../classes/clsRichTextFormatter.dart';
import '../../../../widgets/ads/BannerAds.dart';
import '../components/ListTextSpanBoxWrapper.dart';
import '../components/ParagraphCenterCenterFormatter.dart';
import '../components/ParagraphFormatter.dart';
import '../components/TitlePage.dart';
import 'package:lifeclass/pages/content/lessons/classes/clsLanguageSelector.dart';
class Lesson24 extends StatelessWidget {
  final double fontSize;
  final String colorTheme;
  final String language;
  const Lesson24({super.key,required this.colorTheme,required this.fontSize, required this.language});

  @override
  Widget build(BuildContext context) {
    var brightness = MediaQuery.of(context).platformBrightness;
    bool isDarkMode = brightness == Brightness.dark;

    List<clsRichTextFormatter> they_triumph_01_01 = [
      clsRichTextFormatter(content:clsWeek04Lesson24.they_triumph_01_01(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson24.they_triumph_01_02(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),

      clsRichTextFormatter(content:clsWeek04Lesson24.they_triumph_02_01(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson24.they_triumph_03_01(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson24.they_triumph_04_01(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson24.they_triumph_05_01(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> there_is_a_veil_01_01 = [
      clsRichTextFormatter(content:clsWeek04Lesson24.there_is_a_veil_01_01(language), fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson24.there_is_a_veil_02_01(language), fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson24.there_is_a_veil_03_01(language), fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson24.there_is_a_veil_04_01(language), fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> in_him_we_have_01 = [
      clsRichTextFormatter(content:clsWeek04Lesson24.in_him_we_have_01(language),fontStyle: FontStyle.italic,  fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson24.in_him_we_have_02(language),fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> according_to_the_oxford_01_01 = [
      clsRichTextFormatter(content:clsWeek04Lesson24.according_to_the_oxford_01_01(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson24.according_to_the_oxford_01_02(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson24.according_to_the_oxford_01_03(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),

      clsRichTextFormatter(content:clsWeek04Lesson24.according_to_the_oxford_02_01(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson24.according_to_the_oxford_02_02(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson24.according_to_the_oxford_02_03(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),

    ];

    List<clsRichTextFormatter> paragraph_ = [
      clsRichTextFormatter(content:'',fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:'',fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
    ];

    return Scaffold(
      body: SafeArea(
        child: Column(
          children: [Expanded(
            child: RawScrollbar(
              child: SingleChildScrollView(
                scrollDirection: Axis.vertical,
                child: SafeArea(
                  child: Column(
                    mainAxisSize: MainAxisSize.max,
                    mainAxisAlignment: MainAxisAlignment.start,
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: [
                      TitlePage(dayText: 'DAY 24',preText: clsWeek04Lesson24.title_1(language),midText: clsWeek04Lesson24.title_2(language),postText: clsWeek04Lesson24.title_3(language),fontSize: fontSize, language: language, isDarkMode: isDarkMode,colorTheme: colorTheme),
                      ParagraphCenterCenterFormatter(richTextData: they_triumph_01_01),
                      ParagraphFormatter(richTextData: there_is_a_veil_01_01),
                      SubHeadings(content: clsWeek04Lesson24.subheading_redemption(language), fontSize: fontSize),
                      ParagraphCenterCenterFormatter(richTextData: in_him_we_have_01),
                      ParagraphFormatter(richTextData: according_to_the_oxford_01_01),


                      SizedBox(height:150.0),
                    ],
                  ),
                ),
              ),
            ),
          ),
            BannerAds()
          ],
        ),
      ),
    );
  }
}
