@@ -38,7 +38,12 @@ class Lesson1TestsState extends State<SummativeTests> {
3838 lessonData.test6.length,
3939 ].reduce (max);
4040
41- List <String > subjects = ["english" , "maths" , "evs" , "telegu" , "biology" ];
41+ List <String > subjects = [
42+ "english" ,
43+ "maths" ,
44+ "evs" ,
45+ "telugu" ,
46+ ];
4247
4348 for (String sub in subjects) {
4449 mySteps.add (
@@ -93,6 +98,23 @@ class Lesson1TestsState extends State<SummativeTests> {
9398 state: StepState .indexed,
9499 ));
95100 }
101+ if (sub == "telugu" ) {
102+ mySteps.add (Step (
103+ title: Text ('' ),
104+ content: HardCoded ("వినడం, ఆలోచించి మాట్లాడటం, ప్రశంస:" ,
105+ "గువ్వకు జొరమమ్మ గేయం వినండి, మీకు ఆ గేయంలో నచ్చిన పదాలు చెప్పండి." ),
106+ isActive: true ));
107+ mySteps.add (Step (
108+ title: Text ('' ),
109+ content: HardCoded ("చదవడం:\n క్రింది పదాలు చదవండి" ,
110+ "ముద్ద\n అమ్మ \n బల్లి \n అక్క \n మువ్వ \n బొజ్జ \n చద్ది \n బొమ్మ \n కొమ్మ \n మల్లి \n పిల్లి \n అవ్వ \n గువ్వ\n సజ్జ \n లెక్క" ),
111+ isActive: true ));
112+ mySteps.add (Step (
113+ title: Text ('' ),
114+ content: HardCoded ("ఈ వాక్యాలను మీ పుస్తకంలో గుండ్రంగా రాయండి:" ,
115+ "అమ్మ అంటే నాకు మక్కువ\n అక్క మొక్క నాటింది\n అయ్య కొయ్య తెచ్చాడు" ),
116+ isActive: true ));
117+ }
96118 for (int z = 0 ; z < maxLength; z++ ) {
97119 if (lessonData.test1 != null && z < lessonData.test1.length) {
98120 if (lessonData.test1[z].subject == sub) {
@@ -174,8 +196,11 @@ class Lesson1TestsState extends State<SummativeTests> {
174196 }
175197 }
176198
177- mySteps.add (
178- Step (title: Text ('' ), content: WellDonePage (), isActive: true , state: StepState .indexed));
199+ mySteps.add (Step (
200+ title: Text ('' ),
201+ content: WellDonePage (),
202+ isActive: true ,
203+ state: StepState .indexed));
179204 }
180205
181206 LessonData lessonData;
@@ -247,8 +272,9 @@ class Lesson1TestsState extends State<SummativeTests> {
247272 child: Padding (
248273 padding: EdgeInsets .fromLTRB (0 , 0 , 20 , 0 ),
249274 child: FloatingActionButton .extended (
250- backgroundColor:
251- (currentStep == mySteps.length - 1 ) ? Colors .blueAccent : Colors .white,
275+ backgroundColor: (currentStep == mySteps.length - 1 )
276+ ? Colors .blueAccent
277+ : Colors .white,
252278 splashColor: (currentStep == mySteps.length - 1 )
253279 ? Colors .white54
254280 : Colors .lightBlueAccent,
@@ -265,7 +291,9 @@ class Lesson1TestsState extends State<SummativeTests> {
265291 label: Text (
266292 (currentStep == mySteps.length - 1 ) ? "Finish" : "Next" ,
267293 style: TextStyle (
268- color: (currentStep == mySteps.length - 1 ) ? Colors .white : Colors .blue,
294+ color: (currentStep == mySteps.length - 1 )
295+ ? Colors .white
296+ : Colors .blue,
269297 fontSize: 16 ,
270298 fontWeight: FontWeight .bold),
271299 ),
@@ -298,7 +326,8 @@ class Lesson1TestsState extends State<SummativeTests> {
298326 Navigator .pop (context);
299327 }
300328 },
301- shape: CircleBorder (side: BorderSide (color: Colors .blue, width: 1 )),
329+ shape: CircleBorder (
330+ side: BorderSide (color: Colors .blue, width: 1 )),
302331 child: Icon (
303332 Icons .arrow_back,
304333 color: Colors .blue,
@@ -312,3 +341,29 @@ class Lesson1TestsState extends State<SummativeTests> {
312341 );
313342 }
314343}
344+
345+ class HardCoded extends StatelessWidget {
346+ final String text, text2;
347+ const HardCoded (this .text, this .text2, {Key key}) : super (key: key);
348+
349+ @override
350+ Widget build (BuildContext context) {
351+ return Container (
352+ child: Container (
353+ child: Column (
354+ mainAxisAlignment: MainAxisAlignment .center,
355+ children: < Widget > [
356+ Padding (
357+ padding: EdgeInsets .only (top: 20 , bottom: 10 ),
358+ child: Text (text,
359+ style: TextStyle (fontSize: 24 , fontWeight: FontWeight .bold)),
360+ ),
361+ Padding (
362+ padding: const EdgeInsets .only (top: 20 , bottom: 10 ),
363+ child: Text (text2, style: TextStyle (fontSize: 20 )),
364+ )
365+ ],
366+ )),
367+ );
368+ }
369+ }
0 commit comments