Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-035-CoviDefender
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-035
2021-035-CoviDefender
Commits
657195a1
Commit
657195a1
authored
May 16, 2021
by
Piyumi Dayarathna
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
master: fixed issue in phython.json
parent
366cec46
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
56 deletions
+55
-56
lib/STracker/quizpage.dart
lib/STracker/quizpage.dart
+3
-4
lib/assets/python.json
lib/assets/python.json
+50
-50
pubspec.lock
pubspec.lock
+2
-2
No files found.
lib/STracker/quizpage.dart
View file @
657195a1
...
@@ -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
(()
{
...
...
lib/assets/python.json
View file @
657195a1
...
@@ -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"
:
"
typeo
f"
,
"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"
:
"
de
v"
,
"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"
:
"p
rint
"
,
"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
pubspec.lock
View file @
657195a1
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment