Commit eac52281 authored by Piyumi Dayarathna's avatar Piyumi Dayarathna 💬

master: STracker - chnage the time for a question

parent 50741348
...@@ -49,8 +49,8 @@ class _quizpageState extends State<quizpage> { ...@@ -49,8 +49,8 @@ class _quizpageState extends State<quizpage> {
int marks = 0; int marks = 0;
int i = 1; int i = 1;
int timer = 30; int timer = 60;
String showtimer = "30"; String showtimer = "60";
Map<String, Color> btncolor = { Map<String, Color> btncolor = {
"a": Colors.indigoAccent, "a": Colors.indigoAccent,
...@@ -86,7 +86,7 @@ class _quizpageState extends State<quizpage> { ...@@ -86,7 +86,7 @@ class _quizpageState extends State<quizpage> {
void nextquestion() { void nextquestion() {
canceltimer = false; canceltimer = false;
timer = 30; timer = 60;
setState(() { setState(() {
if (i < 5) { if (i < 5) {
i++; i++;
...@@ -104,7 +104,6 @@ class _quizpageState extends State<quizpage> { ...@@ -104,7 +104,6 @@ class _quizpageState extends State<quizpage> {
} }
void checkanswer(String k) { void checkanswer(String k) {
if (mydata[2][i.toString()] == mydata[1][i.toString()][k]) { if (mydata[2][i.toString()] == mydata[1][i.toString()][k]) {
marks = marks + 5; marks = marks + 5;
colortoshow = right; colortoshow = right;
......
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