Commit 861ff6c5 authored by GayaniPKarunaratne's avatar GayaniPKarunaratne

Done intent part in code

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