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

      clsRichTextFormatter(content:clsWeek03Lesson15.this_week_02_01(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek03Lesson15.this_week_02_02(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek03Lesson15.this_week_02_03(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),

      clsRichTextFormatter(content:clsWeek03Lesson15.this_week_03_01(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),

      clsRichTextFormatter(content:clsWeek03Lesson15.this_week_04_01(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek03Lesson15.this_week_04_02(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek03Lesson15.this_week_04_03(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek03Lesson15.this_week_04_04(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek03Lesson15.this_week_04_05(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> new_birth_01_01 = [
      clsRichTextFormatter(content:clsWeek03Lesson15.new_birth_01_01(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek03Lesson15.new_birth_01_02(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek03Lesson15.new_birth_01_03(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),

      clsRichTextFormatter(content:clsWeek03Lesson15.new_birth_02_01(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),

      clsRichTextFormatter(content:clsWeek03Lesson15.new_birth_03_01(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek03Lesson15.new_birth_03_02(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek03Lesson15.new_birth_03_03(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
    ];
    List<clsRichTextFormatter> the_word_01_01 = [
      clsRichTextFormatter(content:clsWeek03Lesson15.the_word_01_01(language),fontStyle: FontStyle.normal, fontWeight: FontWeight.normal, bColor: '', fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek03Lesson15.the_word_01_02(language),fontStyle: FontStyle.italic, fontWeight: FontWeight.normal, bColor: colorTheme, fontSize: fontSize, isDarkMode: isDarkMode),
      clsRichTextFormatter(content:clsWeek03Lesson15.the_word_01_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 15',preText: clsWeek03Lesson15.title_1(language),midText: clsWeek03Lesson15.title_2(language),postText: '',fontSize: fontSize, language: language, isDarkMode: isDarkMode,colorTheme: colorTheme),
                      ParagraphCenterCenterFormatter(richTextData: very_truly_1),
                      ParagraphFormatter(richTextData: this_week_01_01),
                      Center(child: Image.asset('assets/images/week3_day15_' + (language=='English'?'eng.jpg':'tag.jpg')),),
                      ParagraphFormatter(richTextData: new_birth_01_01),
                      SubHeadings(content: clsWeek03Lesson15.subheading_1(language), fontSize: fontSize),
                      ParagraphFormatter(richTextData: the_word_01_01),
                      SizedBox(height:150.0),
                    ],
                  ),
                ),
              ),
            ),
          ),
            BannerAds()
          ],
        ),
      ),
    );


    return const Placeholder();
  }
}
