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