mirrored_repositories/lifeclass/lib/pages/content/lessons
import 'package:flutter/material.dart';
import 'package:lifeclass/classes/Themes.dart';
import 'package:lifeclass/pages/content/lessons/classes/clsLanguageSelector.dart';
import 'package:lifeclass/pages/content/lessons/components/ParagraphFormatter.dart';

import '../../../../classes/clsRichTextFormatter.dart';
import '../../../../widgets/ads/BannerAds.dart';
import '../components/ParagraphCenterCenterFormatter.dart';
import '../components/ParagraphCenterFormatter.dart';
import '../components/TitlePage.dart';

class Lesson02 extends StatelessWidget {
  final double fontSize;
  final String colorTheme;
  final String language;
  const Lesson02({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> because_your_are_soul = [
      clsRichTextFormatter(content:clsWeek01Lesson2.because_your_are_soul(language),color:'', fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:'',color:'', fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> as_human_beings_01 = [
      clsRichTextFormatter(content:clsWeek01Lesson2.as_human_beings_01_01(language),color:'', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek01Lesson2.as_human_beings_01_02(language),color:'', fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek01Lesson2.as_human_beings_01_03(language),color:'', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> when_he_came_01 = [
      clsRichTextFormatter(content:clsWeek01Lesson2.when_he_came_01_01(language),color:'', fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek01Lesson2.when_he_came_01_02(language),color:'', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> the_young_man = [
      clsRichTextFormatter(content:clsWeek01Lesson2.the_young_man(language),color:'', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:'',color:'', fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> the_is_exactly_01 = [
      clsRichTextFormatter(content:clsWeek01Lesson2.the_is_exactly_01_01(language),color:'', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek01Lesson2.the_is_exactly_01_02(language),color:'', fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek01Lesson2.the_is_exactly_01_03(language),color:'', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> list_he_moved = [
      clsRichTextFormatter(content:clsWeek01Lesson2.list_he_moved(language),color:'', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:'',color:'', fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> during_one_01 = [
      clsRichTextFormatter(content:clsWeek01Lesson2.during_one_01_01(language),color:'', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek01Lesson2.during_one_01_02(language),color:'', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
    ];

    List<clsRichTextFormatter> paragraph_ = [
      clsRichTextFormatter(content:'',color:'', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:'',color:'', 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: Padding(
                    padding: EdgeInsets.all(10),
                    child: Column(
                      mainAxisSize: MainAxisSize.max,
                      mainAxisAlignment: MainAxisAlignment.start,
                      crossAxisAlignment: CrossAxisAlignment.start,
                      children: [
                        TitlePage(dayText: 'DAY 2',preText: clsWeek01Lesson2.title_1(language),midText: clsWeek01Lesson2.title_2(language),postText: '',fontSize: fontSize, language: language, isDarkMode: isDarkMode,colorTheme: colorTheme),
                        ParagraphCenterCenterFormatter(richTextData: because_your_are_soul,marginGap: 50,),
                        Row(
                          mainAxisAlignment: MainAxisAlignment.start,
                          children: [
                            Expanded(child: Padding(padding:EdgeInsets.only(right: 10.0),child: Image.asset('assets/images/week1_day2_img_1.jpg'))),
                            Expanded(child: Text("1 " + clsWeek01Lesson2.illustration_01(language),style: TextStyle(color: myThemes.getColor(colorTheme),fontWeight: FontWeight.bold,fontSize: fontSize),)),
                          ],
                        ),
                        Row(
                          mainAxisAlignment: MainAxisAlignment.start,
                          children: [
                            Expanded(child: Padding(padding:EdgeInsets.only(right: 10.0),child: Image.asset('assets/images/week1_day2_img_2.jpg'))),
                            Expanded(child: Text("2. " + clsWeek01Lesson2.illustration_02(language),style: TextStyle(color: myThemes.getColor(colorTheme),fontWeight: FontWeight.bold,fontSize: fontSize),)),
                          ],
                        ),
                        Row(
                          mainAxisAlignment: MainAxisAlignment.start,
                          children: [
                            Expanded(child: Padding(padding:EdgeInsets.only(right: 10.0),child: Image.asset('assets/images/week1_day2_img_3.jpg'))),
                            Expanded(child: Text("3. " + clsWeek01Lesson2.illustration_03(language),style: TextStyle(color: myThemes.getColor(colorTheme),fontWeight: FontWeight.bold,fontSize: fontSize),)),
                          ],
                        ),
                        Row(
                          mainAxisAlignment: MainAxisAlignment.start,
                          children: [
                            Expanded(child: Padding(padding:EdgeInsets.only(right: 10.0),child: Image.asset('assets/images/week1_day2_img_4.jpg'))),
                            Expanded(child: Text("4. " + clsWeek01Lesson2.illustration_04(language),style: TextStyle(color: myThemes.getColor(colorTheme),fontWeight: FontWeight.bold,fontSize: fontSize),)),
                          ],
                        ),
                        ParagraphCenterFormatter(richTextData: as_human_beings_01, marginGap: 50),
                        ParagraphCenterCenterFormatter(richTextData: when_he_came_01, marginGap: 50),
                        ParagraphFormatter(richTextData: the_young_man),
                        ParagraphFormatter(richTextData: the_is_exactly_01),
                        ParagraphCenterFormatter(richTextData: list_he_moved, marginGap: 50),
                        ParagraphFormatter(richTextData: during_one_01),
                        SizedBox(height:150.0),
                      ],
                    ),
                  ),
                ),
              ),
            ),
          ),
            BannerAds()
          ],
        ),
      ),
    );
  }
}
