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

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

class Lesson01 extends StatelessWidget {
  final double fontSize;
  final String colorTheme;
  final String language;
  const Lesson01({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> ford_01 = [
      clsRichTextFormatter(content:clsWeek01Lesson1.ford_01_1(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: '', color:'', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek01Lesson1.ford_01_2(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme,color:'',  fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek01Lesson1.ford_01_3(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: '',color:'',  fontSize: fontSize, isDarkMode: isDarkMode),

    ];
    List<clsRichTextFormatter> common_01 = [
      clsRichTextFormatter(content:clsWeek01Lesson1.common_01(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '',color:'',  fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:'',fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme,color:'',  fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> the_bible_01 = [
      clsRichTextFormatter(content:clsWeek01Lesson1.the_bible_01(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '',color:'',  fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:'',fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme,color:'',  fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> prodigal_son = [
      clsRichTextFormatter(content:clsWeek01Lesson1.prodigal_son(language),color:'', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:'',fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme,color:'',  fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> john_spoke = [
      clsRichTextFormatter(content:clsWeek01Lesson1.john_spoke(language),color:'', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:'',fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme,color:'',  fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> what_had = [
      clsRichTextFormatter(content:clsWeek01Lesson1.what_had(language),color:'', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:'',fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme,color:'',  fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> there_is_a_way_01 = [
      clsRichTextFormatter(content:clsWeek01Lesson1.there_is_a_way_01_01(language),color:'', fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek01Lesson1.there_is_a_way_01_02(language),color:'', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> today_01_01 = [
      clsRichTextFormatter(content:clsWeek01Lesson1.today_01_01(language),color:'', fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek01Lesson1.today_01_02(language),color:'', fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek01Lesson1.today_01_03(language),color:'', fontStyle: FontStyle.italic, 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: Column(
                    mainAxisSize: MainAxisSize.max,
                    mainAxisAlignment: MainAxisAlignment.start,
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: [
                      TitlePage(dayText: 'DAY 1',preText: clsWeek01Lesson1.title_1(language),midText: clsWeek01Lesson1.title_2(language),postText: clsWeek01Lesson1.title_3(language),fontSize: fontSize, language: language, isDarkMode: isDarkMode,colorTheme: colorTheme),
                      ParagraphCenterFormatter(richTextData: ford_01, marginGap: 50),
                      ParagraphFormatter(richTextData: common_01),
                      ParagraphFormatter(richTextData: the_bible_01),
                      ParagraphFormatter(richTextData: prodigal_son),
                      ParagraphFormatter(richTextData: john_spoke),
                      ParagraphFormatter(richTextData: what_had),
                      ParagraphCenterCenterFormatter(richTextData: there_is_a_way_01, marginGap: 50),
                      SubHeadings(content: clsWeek01Lesson1.subheadings(language), fontSize: fontSize),
                      ParagraphFormatter(richTextData: today_01_01),
                      SizedBox(height:150.0),
                    ],
                  ),
                ),
              ),
            ),
          ),
            BannerAds()
          ],
        ),
      ),
    );
  }
}

