mirrored_repositories/lifeclass/lib/pages/content/lessons
import 'package:flutter/material.dart';
import '../../../../classes/clsRichTextFormatter.dart';
import '../../../../widgets/ads/BannerAds.dart';
import '../components/ParagraphCenterCenterFormatter.dart';
import '../components/ParagraphFormatter.dart';
import '../components/TitlePage.dart';
import 'package:lifeclass/pages/content/lessons/classes/clsLanguageSelector.dart';
class Lesson25 extends StatelessWidget {
  final double fontSize;
  final String colorTheme;
  final String language;
  const Lesson25({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> i_will_give_you_a_new_life_01_01 = [
      clsRichTextFormatter(content:clsWeek04Lesson25.i_will_give_you_a_new_life_01_01(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson25.i_will_give_you_a_new_life_01_02(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> son_your_sins_01_01 = [
      clsRichTextFormatter(content:clsWeek04Lesson25.son_your_sins_01_01(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson25.son_your_sins_01_02(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),

      clsRichTextFormatter(content:clsWeek04Lesson25.son_your_sins_02_01(language), fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson25.son_your_sins_02_02(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson25.son_your_sins_02_03(language), fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),

      clsRichTextFormatter(content:clsWeek04Lesson25.son_your_sins_03_01(language), fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),

      clsRichTextFormatter(content:clsWeek04Lesson25.son_your_sins_04_01(language), fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson25.son_your_sins_04_02(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson25.son_your_sins_04_03(language), fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),

      clsRichTextFormatter(content:clsWeek04Lesson25.son_your_sins_05_01(language), fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek04Lesson25.son_your_sins_06_01(language), 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 25',preText: clsWeek04Lesson25.title_1(language),midText: clsWeek04Lesson25.title_2(language),postText: '',fontSize: fontSize, language: language, isDarkMode: isDarkMode,colorTheme: colorTheme),
                      ParagraphCenterCenterFormatter(richTextData: i_will_give_you_a_new_life_01_01),
                      ParagraphFormatter(richTextData: son_your_sins_01_01),

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