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