Commit 657195a1 authored by Piyumi Dayarathna's avatar Piyumi Dayarathna 💬

master: fixed issue in phython.json

parent 366cec46
......@@ -88,7 +88,7 @@ class _quizpageState extends State<quizpage> {
canceltimer = false;
timer = 30;
setState(() {
if (i < 5) {
if (i < 10) {
i++;
} else {
Navigator.of(context).pushReplacement(MaterialPageRoute(
......@@ -104,12 +104,11 @@ class _quizpageState extends State<quizpage> {
}
void checkanswer(String k) {
if (mydata[2]["1"] == mydata[1]["1"][k]) {
if (mydata[2][i.toString()] == mydata[1][i.toString()][k]) {
marks = marks + 5;
colortoshow = right;
} else {
debugPrint("Test 1");
colortoshow = wrong;
}
setState(() {
......
......@@ -13,76 +13,76 @@
},
{
"1": {
"a": "pp",
"b": "ppp",
"c": "3p",
"d": "p3"
"a": "a",
"b": "b",
"c": "c",
"d": "d"
},
"2": {
"a": "typedef",
"b": "typeof",
"c": "type",
"d": "find"
"a": "e",
"b": "f",
"c": "g",
"d": "h"
},
"3": {
"a": "func",
"b": "def",
"c": "void",
"d": "function"
"a": "i",
"b": "j",
"c": "k",
"d": "l"
},
"4": {
"a": "count",
"b": "print",
"c": "println",
"d": "stderr"
"a": "m",
"b": "n",
"c": "o",
"d": "p"
},
"5": {
"a": "typedef",
"b": "typeof",
"c": "type",
"d": "find"
"a": "q",
"b": "r",
"c": "s",
"d": "t"
},
"6": {
"a": "func",
"b": "dev",
"c": "void",
"d": "function"
"a": "u",
"b": "v",
"c": "w",
"d": "x"
},
"7": {
"a": "typedev",
"b": "typeof",
"c": "type",
"d": "find"
"a": "y",
"b": "z",
"c": "1",
"d": "2"
},
"8": {
"a": "func",
"b": "dev",
"c": "void",
"d": "function"
"a": "3",
"b": "4",
"c": "5",
"d": "6"
},
"9": {
"a": "typedev",
"b": "typeof",
"c": "type",
"d": "find"
"a": "7",
"b": "8",
"c": "9",
"d": "10"
},
"10": {
"a": "func",
"b": "dev",
"c": "void",
"d": "function"
"a": "11",
"b": "12",
"c": "13",
"d": "14"
}
},
{
"1": "ppp",
"2": "type",
"3": "def",
"4": "print",
"5": "type",
"6": "def",
"7": "type",
"8": "def",
"9": "type",
"10": "def"
"1": "a",
"2": "f",
"3": "k",
"4": "p",
"5": "s",
"6": "u",
"7": "1",
"8": "4",
"9": "7",
"10": "12"
}
]
\ No newline at end of file
......@@ -127,7 +127,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.1"
version: "1.8.0"
stack_trace:
dependency: transitive
description:
......@@ -162,7 +162,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.0"
version: "0.2.19"
typed_data:
dependency: transitive
description:
......
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