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
eac52281
Commit
eac52281
authored
May 16, 2021
by
Piyumi Dayarathna
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
master: STracker - chnage the time for a question
parent
50741348
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
lib/STracker/quizpage.dart
lib/STracker/quizpage.dart
+3
-4
No files found.
lib/STracker/quizpage.dart
View file @
eac52281
...
@@ -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
=
3
0
;
int
timer
=
6
0
;
String
showtimer
=
"
3
0"
;
String
showtimer
=
"
6
0"
;
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
=
3
0
;
timer
=
6
0
;
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
;
...
...
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