Commit 4d634207 authored by Indika NK's avatar Indika NK

Sc Result screen for negative result added

parent 001bba5b
...@@ -40,29 +40,6 @@ class dataService{ ...@@ -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");
// });
// }
// }
......
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
),)),
)
],
),
),
),
);
}
}
import 'dart:collection'; import 'dart:collection';
import 'package:covidefender/pages/self_carer/SC_result_screen.dart'; 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:covidefender/pages/self_carer/model/colors.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:quiver/collection.dart'; import 'package:quiver/collection.dart';
...@@ -120,6 +121,10 @@ class SC_mainState extends State<SC_main> { ...@@ -120,6 +121,10 @@ class SC_mainState extends State<SC_main> {
print("Positive Match Found Immediate Treatements needed !"), print("Positive Match Found Immediate Treatements needed !"),
Navigator.push(context, Navigator.push(context,
MaterialPageRoute(builder: (context) => SC_resultScreen())) MaterialPageRoute(builder: (context) => SC_resultScreen()))
}else{
print("Positive Match Found Immediate Treatements needed !"),
Navigator.push(context,
MaterialPageRoute(builder: (context) => SC_resultScreen_negative()))
} }
} }
......
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