mirrored_repositories/lifeclass/lib/pages/content/lessons
import 'package:flutter/material.dart';
import 'package:lifeclass/pages/content/lessons/components/ParagraphCenterFormatter.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 Lesson12 extends StatelessWidget {
  final double fontSize;
  final String colorTheme;
  final String language;
  const Lesson12({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> there_is_a_well_01 = [
      clsRichTextFormatter(content:clsWeek02Lesson12.there_is_a_well_01(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek02Lesson12.there_is_a_well_02(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
    ];

    List<clsListItemTextSpanAttributes> blood_of_jesus_01 = [
      clsListItemTextSpanAttributes(leftIdentifier: '•', content: [
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_01(language),fontWeight: FontWeight.bold,fontStyle: FontStyle.italic, fontSize: fontSize, isDarkMode: isDarkMode),
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_01_01(language), fontSize: fontSize, isDarkMode: isDarkMode),
      ], fontSize: fontSize,isDarkMode: isDarkMode),
      clsListItemTextSpanAttributes(leftIdentifier: '•', content: [
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_02_01(language),fontWeight: FontWeight.bold,fontStyle: FontStyle.italic, fontSize: fontSize, isDarkMode: isDarkMode),
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_02_02(language), fontSize: fontSize, isDarkMode: isDarkMode),
      ], fontSize: fontSize,isDarkMode: isDarkMode),
      clsListItemTextSpanAttributes(leftIdentifier: '•', content: [
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_03_01(language),fontWeight: FontWeight.bold,fontStyle: FontStyle.italic, fontSize: fontSize, isDarkMode: isDarkMode),
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_03_02(language), fontSize: fontSize, isDarkMode: isDarkMode),
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_03_03(language),fontStyle: FontStyle.italic,bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_03_04(language), fontSize: fontSize, isDarkMode: isDarkMode),
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_03_05(language),fontStyle: FontStyle.italic,bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_03_06(language), fontSize: fontSize, isDarkMode: isDarkMode),
      ], fontSize: fontSize,isDarkMode: isDarkMode),
      clsListItemTextSpanAttributes(leftIdentifier: '•', content: [
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_04_01(language),fontWeight: FontWeight.bold,fontStyle: FontStyle.italic, fontSize: fontSize, isDarkMode: isDarkMode),
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_04_02(language), fontSize: fontSize, isDarkMode: isDarkMode),
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_04_03(language),fontStyle: FontStyle.italic,bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_04_04(language), fontSize: fontSize, isDarkMode: isDarkMode),
      ], fontSize: fontSize,isDarkMode: isDarkMode),
      clsListItemTextSpanAttributes(leftIdentifier: '•', content: [
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_05_01(language),fontWeight: FontWeight.bold,fontStyle: FontStyle.italic, fontSize: fontSize, isDarkMode: isDarkMode),
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_05_02(language), fontSize: fontSize, isDarkMode: isDarkMode),
      ], fontSize: fontSize,isDarkMode: isDarkMode),
      clsListItemTextSpanAttributes(leftIdentifier: '•', content: [
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_06_01(language),fontWeight: FontWeight.bold,fontStyle: FontStyle.italic, fontSize: fontSize, isDarkMode: isDarkMode),
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_06_02(language), fontSize: fontSize, isDarkMode: isDarkMode),
      ], fontSize: fontSize,isDarkMode: isDarkMode),
      clsListItemTextSpanAttributes(leftIdentifier: '•', content: [
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_07_01(language),fontWeight: FontWeight.bold,fontStyle: FontStyle.italic, fontSize: fontSize, isDarkMode: isDarkMode),
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_07_02(language), fontSize: fontSize, isDarkMode: isDarkMode),
        clsRichTextFormatter(content:clsWeek02Lesson12.blood_of_jesus_07_03(language),fontStyle: FontStyle.italic,bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
      ], fontSize: fontSize,isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> the_best_decision = [
      clsRichTextFormatter(content:clsWeek02Lesson12.the_best_decision(language),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),
    ];

    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 12',preText: clsWeek02Lesson12.title_1(language),midText: clsWeek02Lesson12.title_2(language),postText: '',fontSize: fontSize, language: language, isDarkMode: isDarkMode,colorTheme: colorTheme),
                      ParagraphCenterCenterFormatter(richTextData: there_is_a_well_01),
                      ListTextSpanBoxWrapper(listItemData: blood_of_jesus_01),
                      Center(child: Image.asset('assets/images/week_2_day_12_' + (language=='English'?'eng.jpg':'tag.jpg')),),
                      ParagraphFormatter(richTextData: the_best_decision),
                      SizedBox(height:150.0),
                    ],
                  ),
                ),
              ),
            ),
          ),
            BannerAds()
          ],
        ),
      ),
    );
  }
}
