Skip to content

Commit 8bd6672

Browse files
committed
minor addition, logo
1 parent d970863 commit 8bd6672

4 files changed

Lines changed: 67 additions & 10 deletions

File tree

assets/images/HappyAddaLogo.png

230 KB
Loading

lib/main.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ class _MyHomePageState extends State<MyHomePage> {
6464
mainAxisAlignment: MainAxisAlignment.center,
6565
children: <Widget>[
6666
Text(
67-
"by HAPPY ADDA STUDIOS",
68-
style: TextStyle(fontSize: 20),
69-
)
67+
"by",
68+
style: TextStyle(fontSize: 18),
69+
),
70+
Image.asset("assets/images/HappyAddaLogo.png", width: 200, height: 70,),
7071
],
7172
),
7273
],

lib/summative_assesment.dart

Lines changed: 62 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}

pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ flutter:
8989

9090
# Assets (Images)
9191
assets:
92+
- assets/images/HappyAddaLogo.png
9293
- assets/images/books.jpg
9394
- assets/images/pb6/gaurd.png
9495
- assets/images/pb6/spinach.png

0 commit comments

Comments
 (0)