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
4d634207
Commit
4d634207
authored
Aug 18, 2021
by
Indika NK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sc Result screen for negative result added
parent
001bba5b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
85 additions
and
23 deletions
+85
-23
lib/AuthConfigs/AuthConfig.dart
lib/AuthConfigs/AuthConfig.dart
+0
-23
lib/pages/self_carer/SC_result_screen_negative.dart
lib/pages/self_carer/SC_result_screen_negative.dart
+80
-0
lib/pages/self_carer/sc_main_screen.dart
lib/pages/self_carer/sc_main_screen.dart
+5
-0
No files found.
lib/AuthConfigs/AuthConfig.dart
View file @
4d634207
...
...
@@ -40,29 +40,6 @@ class dataService{
}
// DocumentReference documentReference =
// Firestore.instance.collection("users").document(name);
//
// Map<String, dynamic> userdata = {
// 'email':email,
// 'Name':name,
// 'Address':address,
// 'NIC':NIC,
// 'mobile':mobile,
// 'Home_phone':homeNumber,
// 'awarenessLevel':awarenessLevel
// };
//
// documentReference.setData(user).whenComplete(() {
// print("$userName created");
// });
// }
// }
...
...
lib/pages/self_carer/SC_result_screen_negative.dart
0 → 100644
View file @
4d634207
import
'package:covidefender/pages/self_carer/SC_medicalSupport.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/material.dart'
;
import
'package:google_fonts/google_fonts.dart'
;
import
'../../home_screen.dart'
;
class
SC_resultScreen_negative
extends
StatelessWidget
{
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
title:
Text
(
'Results'
),
),
body:
SingleChildScrollView
(
child:
Container
(
color:
Colors
.
white
,
child:
Column
(
children:
[
Center
(
child:
Container
(
width:
MediaQuery
.
of
(
context
).
size
.
width
,
height:
MediaQuery
.
of
(
context
).
size
.
height
/
2.5
,
child:
Image
.
asset
(
'lib/assets/images/lab.gif'
)),
),
SizedBox
(
height:
10
,
),
Text
(
"Analysis Results"
,
style:
GoogleFonts
.
lato
(
color:
Colors
.
blue
,
fontSize:
24
,
fontWeight:
FontWeight
.
bold
,
letterSpacing:
2
)),
SizedBox
(
height:
10
,
),
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
20
,
50
,
50
,
10
),
child:
Text
(
"Seems You are in Good Health .
\n
"
"Let's Keep Stick To the Healthy Habits !
\n
"
""
,
style:
GoogleFonts
.
adamina
(
color:
Colors
.
blueAccent
,
fontSize:
16
,
fontStyle:
FontStyle
.
italic
,
wordSpacing:
2
),
),
),
SizedBox
(
height:
60
,
),
SizedBox
(
height:
70
,
width:
350
,
child:
ElevatedButton
(
style:
ElevatedButton
.
styleFrom
(
primary:
Colors
.
green
[
300
],
elevation:
15
,
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
12
)
)
),
onPressed:
()
{
Navigator
.
of
(
context
)
.
pushAndRemoveUntil
(
MaterialPageRoute
(
builder:
(
context
)
=>
HomeScreen
()),(
Route
<
dynamic
>
route
)
=>
false
);
},
child:
Text
(
'Back To Home'
,
style:
GoogleFonts
.
lato
(
fontWeight:
FontWeight
.
bold
,
fontSize:
16
),)),
)
],
),
),
),
);
}
}
lib/pages/self_carer/sc_main_screen.dart
View file @
4d634207
import
'dart:collection'
;
import
'package:covidefender/pages/self_carer/SC_result_screen.dart'
;
import
'package:covidefender/pages/self_carer/SC_result_screen_negative.dart'
;
import
'package:covidefender/pages/self_carer/model/colors.dart'
;
import
'package:flutter/material.dart'
;
import
'package:quiver/collection.dart'
;
...
...
@@ -120,6 +121,10 @@ class SC_mainState extends State<SC_main> {
print
(
"Positive Match Found Immediate Treatements needed !"
),
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
SC_resultScreen
()))
}
else
{
print
(
"Positive Match Found Immediate Treatements needed !"
),
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
SC_resultScreen_negative
()))
}
}
...
...
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