Commit af0bb466 authored by Indika NK's avatar Indika NK

commented codes removed , some color and button modifications added, result...

commented codes removed , some color and button modifications added, result screen modified in Iguider
parent a869be02
......@@ -44,13 +44,23 @@ class I_guider extends StatelessWidget {
child: Padding(
padding: const EdgeInsets.fromLTRB(8, 0, 8, 0),
child: ButtonTheme(
splashColor: Colors.blue,
minWidth: 100.0,
height: 150.0,
child: RaisedButton.icon(
icon: Icon(
Icons.bluetooth_audio_rounded,
size: 40,
color: Colors.white,
icon: Column(
children: [
Icon(
Icons.bluetooth_audio_rounded,
size: 40,
color: Colors.white,
),
SizedBox(height: 20),
Text("BT Distancer",style:TextStyle(
fontWeight: FontWeight.bold,
color: Colors.white
) ,)
],
),
label: Text('',
style: TextStyle(fontWeight: FontWeight.bold)),
......@@ -70,10 +80,20 @@ class I_guider extends StatelessWidget {
height: 150.0,
child: RaisedButton.icon(
color: Colors.greenAccent,
icon: Icon(
Icons.face_unlock_sharp,
size: 60,
color: Colors.white,
icon: Column(
children: [
Icon(
Icons.face_unlock_sharp,
size: 60,
color: Colors.white,
),
SizedBox(height: 20),
Text("Mask Detector",style:TextStyle(
fontWeight: FontWeight.bold,
color: Colors.white
) ,)
],
),
label: Text(
'',
......@@ -106,10 +126,19 @@ class I_guider extends StatelessWidget {
minWidth: 100.0,
height: 150.0,
child: RaisedButton.icon(
icon: Icon(
Icons.view_stream_outlined,
size: 40,
color: Colors.white,
icon: Column(
children: [
Icon(
Icons.view_stream_outlined,
size: 40,
color: Colors.white,
),
SizedBox(height: 20),
Text("Heart Monitor",style:TextStyle(
fontWeight: FontWeight.bold,
color: Colors.white
) ,)
],
),
label: Text('',
style: TextStyle(fontWeight: FontWeight.bold)),
......@@ -132,10 +161,19 @@ class I_guider extends StatelessWidget {
height: 150.0,
child: RaisedButton.icon(
color: Colors.purple[200],
icon: Icon(
Icons.online_prediction_sharp,
size: 60,
color: Colors.white,
icon: Column(
children: [
Icon(
Icons.online_prediction_sharp,
size: 60,
color: Colors.white,
),
SizedBox(height: 20),
Text("Self-Carer",style:TextStyle(
fontWeight: FontWeight.bold,
color: Colors.white
) ,)
],
),
label: Text(
'',
......
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
class SC_resultScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Results'),
),
body: Center(
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/hero.gif')),
),
Text("Analysis Results"),
ElevatedButton(onPressed: (){}, child: Text('Medical Support'))
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(
"Seem's you are having Symptoms Related to Covid19.\n"
"Let's Get Medical Assistance ! \n"
"Click Below Button To Get a Health Officer",
style: GoogleFonts.adamina(color: Colors.red ,fontSize: 16,fontStyle: FontStyle.italic,wordSpacing: 2),
),
),
SizedBox(
height: 60,
),
],
SizedBox(
height: 70,
width: 350,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
primary: Colors.red[300],
elevation: 15,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12)
)
),
onPressed: () {},
child: Text('Medical Support',style: GoogleFonts.lato(
fontWeight: FontWeight.bold,
fontSize: 16
),)),
)
],
),
),
),
);
......
......@@ -86,13 +86,6 @@ class SC_mainState extends State<SC_main> {
print('${key}: ${value}');
if (value) {
symptomList.putIfAbsent(key, () => value);
// if(symptomList.containsKey('Food') && symptomList.containsKey('Materials') ){
// print("all is here");
// }else if(symptomList.containsKey('Food')){
// print("Food only is here");
// Navigator.push(context, MaterialPageRoute(builder: (context)=>HomeScreen()));
// Navigator.pop(context);
// }
print(
'Selected Items::' + symptomList.toString());
}
......@@ -108,32 +101,6 @@ class SC_mainState extends State<SC_main> {
),
),
// Padding(
// padding: const EdgeInsets.all(8.0),
// child: Card(
// elevation: 8,
// shape: RoundedRectangleBorder(
// borderRadius: BorderRadius.circular(15)),
// color: Colors.lightBlueAccent[100],
// child: Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: [
// Container(
// child: Image(
// image:
// AssetImage('lib/assets/images/man80.png'))),
// // SizedBox(width: 50),
// Text("Fever With Chills",style: TextStyle(color: Colors.white)),
// // SizedBox(width: 70),
// Checkbox(value: cbTestvalue, onChanged: (bool value){
// setState(() {
//
// });
// })
//
//
//
],
),
),
......
......@@ -35,6 +35,7 @@ dependencies:
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
google_fonts: ^1.1.2
#add dependencies for heart rate module
charts_flutter: ^0.9.0
......@@ -91,6 +92,7 @@ flutter:
- lib/assets/images/symptoms.png
- lib/assets/images/startQuiz.png
- lib/assets/images/hero.gif
- lib/assets/images/lab.gif
- lib/assets/images/map80.png
- lib/assets/images/man80.png
- lib/assets/images/bar80.png
......
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