Commit 861ff6c5 authored by GayaniPKarunaratne's avatar GayaniPKarunaratne

Done intent part in code

parent c80dd460
......@@ -4,7 +4,18 @@ class EAnalyzerDash extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("EAnalyzer DashBoard"),
),
body: Center(
child: ElevatedButton(
onPressed: () {
// Navigate back to first route when tapped.
Navigator.pop(context);
},
child: Text('Go back!'),
),
),
);
}
}
\ No newline at end of file
......@@ -10,8 +10,8 @@ class _HomeScreenState extends State<HomeScreen> {
var size = MediaQuery.of(context).size;
return Scaffold(
appBar: AppBar(
leading: IconButton(icon: Icon(Icons.menu),onPressed: (){
leading: IconButton(icon: Icon(Icons.menu),
onPressed: (){
}),
title: Text("CoviDefender Dashboard"),
actions: <Widget>[
......@@ -159,13 +159,15 @@ class _HomeScreenState extends State<HomeScreen> {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Container(
height: size.height * .1,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'lib/assets/images/event80.png')),
)),
FlatButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => EAnalyzerDash()),
);
},
child: Image.asset('lib/assets/images/event80.png'),
),
Text('Event Risk Analyzer', style: TextStyle(fontSize: 20.0))
// onPressed: (){
// Navigator.push(context,
......
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