Commit 690a503e authored by Piyumi Dayarathna's avatar Piyumi Dayarathna 💬

Responsiveness in STracker

parent b4044803
......@@ -143,8 +143,8 @@ class _homepageState extends State<homepage> {
),
),
padding: EdgeInsets.symmetric(
vertical: 20.0,
horizontal: 200.0,
vertical: 10.0,
horizontal: 50.0,
),
)
],
......
......@@ -144,7 +144,7 @@ class _quizpageState extends State<quizpage> {
Widget choicebutton(String k) {
return Padding(
padding: EdgeInsets.symmetric(
vertical: 20.0,
vertical: 10.0,
horizontal: 20.0,
),
child: MaterialButton(
......@@ -153,15 +153,15 @@ class _quizpageState extends State<quizpage> {
mydata[1][i.toString()][k],
style: TextStyle(
color: Colors.white,
fontSize: 20.0,
fontSize: 15.0,
),
maxLines: 1,
),
color: btncolor[k],
splashColor: Colors.indigo[700],
highlightColor: Colors.indigo[700],
minWidth: 500.0,
height: 70.0,
minWidth: 300.0,
height: 40.0,
shape:
RoundedRectangleBorder(borderRadius: BorderRadius.circular(20.0)),
),
......@@ -204,14 +204,14 @@ class _quizpageState extends State<quizpage> {
child: Material(
elevation: 20.0,
child: Container(
width: 400.0,
width: 300.0,
height: 50.0,
child: Column(
children: <Widget>[
Material(
child: Container(
width: 400.0,
height: 375.0,
width: 200.0,
height: 200.0,
child: ClipRRect(
child: Image(
image: AssetImage(
......@@ -225,17 +225,17 @@ class _quizpageState extends State<quizpage> {
),
),
SizedBox(
height: 20,
height: 10,
),
Expanded(
flex: 1,
child: Container(
padding: EdgeInsets.all(15.0),
alignment: Alignment.bottomLeft,
padding: EdgeInsets.all(0.0),
alignment: Alignment.center,
child: Text(
mydata[0][i.toString()],
style: TextStyle(
fontSize: 30.0,
fontSize: 15.0,
fontWeight: FontWeight.w700,
),
),
......@@ -266,7 +266,7 @@ class _quizpageState extends State<quizpage> {
child: Text(
showtimer,
style: TextStyle(
fontSize: 35.0,
fontSize: 30.0,
fontWeight: FontWeight.w700,
),
),
......
......@@ -73,7 +73,7 @@ class _resultpageState extends State<resultpage> {
child: Text(
"You Scored $marks marks",
style: TextStyle(
fontSize: 30.0,
fontSize: 20.0,
fontWeight: FontWeight.w900,
),
),
......@@ -99,8 +99,8 @@ class _resultpageState extends State<resultpage> {
),
),
padding: EdgeInsets.symmetric(
vertical: 20.0,
horizontal: 200.0,
vertical: 10.0,
horizontal: 50.0,
),
)
],
......
......@@ -145,7 +145,7 @@ class _quizpageMaskWearingState extends State<quizpageMaskWearing> {
Widget choicebutton(String k) {
return Padding(
padding: EdgeInsets.symmetric(
vertical: 20.0,
vertical: 10.0,
horizontal: 20.0,
),
child: MaterialButton(
......@@ -154,15 +154,15 @@ class _quizpageMaskWearingState extends State<quizpageMaskWearing> {
mydata[1][i.toString()][k],
style: TextStyle(
color: Colors.white,
fontSize: 20.0,
fontSize: 15.0,
),
maxLines: 1,
),
color: btncolor[k],
splashColor: Colors.indigo[700],
highlightColor: Colors.indigo[700],
minWidth: 500.0,
height: 70.0,
minWidth: 300.0,
height: 40.0,
shape:
RoundedRectangleBorder(borderRadius: BorderRadius.circular(20.0)),
),
......@@ -202,14 +202,14 @@ class _quizpageMaskWearingState extends State<quizpageMaskWearing> {
child: Material(
elevation: 20.0,
child: Container(
width: 400.0,
width: 300.0,
height: 50.0,
child: Column(
children: <Widget>[
Material(
child: Container(
width: 400.0,
height: 375.0,
width: 200.0,
height: 200.0,
child: ClipRRect(
child: Image(
image: AssetImage(
......@@ -222,15 +222,18 @@ class _quizpageMaskWearingState extends State<quizpageMaskWearing> {
)),
),
),
SizedBox(
height: 10,
),
Expanded(
flex: 1,
child: Container(
padding: EdgeInsets.all(15.0),
alignment: Alignment.bottomLeft,
padding: EdgeInsets.all(0.0),
alignment: Alignment.center,
child: Text(
mydata[0][i.toString()],
style: TextStyle(
fontSize: 30.0,
fontSize: 15.0,
fontWeight: FontWeight.w700,
),
),
......@@ -261,7 +264,7 @@ class _quizpageMaskWearingState extends State<quizpageMaskWearing> {
child: Text(
showtimer,
style: TextStyle(
fontSize: 35.0,
fontSize: 30.0,
fontWeight: FontWeight.w700,
),
),
......
......@@ -144,8 +144,8 @@ class _maskWearingQuizStartPageState extends State<maskWearingQuizStartPage> {
),
),
padding: EdgeInsets.symmetric(
vertical: 20.0,
horizontal: 200.0,
vertical: 10.0,
horizontal: 50.0,
),
)
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment