-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.dart
71 lines (58 loc) · 1.5 KB
/
main.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import 'package:flutter/material.dart';
import 'quiz1.dart';
import './quiz1.dart';
import './vaish.dart';
void main(){
runApp(
new MaterialApp(
debugShowCheckedModeBanner: false,
home: new AnimalQuiz(),
)
);
}
class AnimalQuiz extends StatefulWidget{
@override
State<StatefulWidget> createState() {
return new AnimalQuizState();
}
}
class AnimalQuizState extends State<AnimalQuiz>{
@override
Widget build(BuildContext context) {
return new Scaffold(
backgroundColor: Colors.black,
appBar: new AppBar(
title: new Text("ALzheimer test Quiz"),
backgroundColor: Colors.blue,
),
body:
new Container(
margin: const EdgeInsets.all(15.0),
child: new Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
new MaterialButton(
height: 50.0,
color: Colors.green,
onPressed: startQuiz,
child: new Text("Quiz 1",
style: new TextStyle(
fontSize: 18.0,
color: Colors.white
),)
)
],
),
),
);
}
void startQuiz(){
setState(() {
Navigator.push(context, new MaterialPageRoute(builder: (context)=> new MyHomePage()));
});
}
}
class Test{
var a="ram";
}