Commit b9f32b97 authored by GayaniPKarunaratne's avatar GayaniPKarunaratne

Change some codes in eanalyzerdash.dart

parent 861ff6c5
...@@ -7,14 +7,138 @@ class EAnalyzerDash extends StatelessWidget { ...@@ -7,14 +7,138 @@ class EAnalyzerDash extends StatelessWidget {
appBar: AppBar( appBar: AppBar(
title: Text("EAnalyzer DashBoard"), title: Text("EAnalyzer DashBoard"),
), ),
body: Center( body: Stack(
child: ElevatedButton( children: <Widget>[
Container(
decoration: BoxDecoration(
image: DecorationImage(
alignment: Alignment.topCenter,
image: AssetImage('lib/assets/images/green.jpg'),
))),
SafeArea(
child: Padding(
padding: EdgeInsets.all(16.0),
child: Column(
children: <Widget>[
Container(
height: 64,
margin: EdgeInsets.only(bottom: 20),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
CircleAvatar(
radius: 32,
backgroundColor: Colors.transparent,
backgroundImage: AssetImage('lib/assets/images/eana.png'),
),
SizedBox(
width: 16,
),
Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text('EAnalyzer', style: TextStyle(fontSize: 35.0, color: Colors.white)),
],
)
],
),
),
Expanded(
child: GridView.count(
mainAxisSpacing: 10,
crossAxisSpacing: 10,
primary: false,
crossAxisCount: 2,
children: <Widget>[
Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8)),
elevation: 4,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
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))
],
)
),
Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8)),
elevation: 4,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
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))
],
)
),
Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8)),
elevation: 4,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
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))
],
)
),
Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8)),
elevation: 4,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
FlatButton(
onPressed: () { onPressed: () {
// Navigate back to first route when tapped. Navigator.push(
Navigator.pop(context); context,
MaterialPageRoute(builder: (context) => EAnalyzerDash()),
);
}, },
child: Text('Go back!'), child: Image.asset('lib/assets/images/event80.png'),
),
Text('Event Risk Analyzer', style: TextStyle(fontSize: 20.0))
],
)
),
],
),
)
],
),
), ),
)
],
), ),
); );
} }
......
...@@ -11,11 +11,14 @@ class _HomeScreenState extends State<HomeScreen> { ...@@ -11,11 +11,14 @@ class _HomeScreenState extends State<HomeScreen> {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
leading: IconButton(icon: Icon(Icons.menu), leading: IconButton(icon: Icon(Icons.menu),
tooltip: 'Navigation menu',
onPressed: (){ onPressed: (){
}), }),
title: Text("CoviDefender Dashboard"), title: Text("CoviDefender Dashboard"),
actions: <Widget>[ actions: <Widget>[
IconButton(icon: Icon(Icons.search),onPressed: (){ IconButton(icon: Icon(Icons.search),
tooltip: 'Search',
onPressed: (){
}), }),
], ],
......
...@@ -127,7 +127,7 @@ packages: ...@@ -127,7 +127,7 @@ packages:
name: source_span name: source_span
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.8.0" version: "1.8.1"
stack_trace: stack_trace:
dependency: transitive dependency: transitive
description: description:
...@@ -162,7 +162,7 @@ packages: ...@@ -162,7 +162,7 @@ packages:
name: test_api name: test_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.2.19" version: "0.3.0"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
......
...@@ -48,14 +48,14 @@ flutter: ...@@ -48,14 +48,14 @@ flutter:
assets: assets:
- lib/assets/images/top_header.jpg - lib/assets/images/top_header.jpg
- lib/assets/images/mino.jpg - lib/assets/images/green.jpg
- lib/assets/images/boralu.jpg
- lib/assets/images/map80.png - lib/assets/images/map80.png
- lib/assets/images/man80.png - lib/assets/images/man80.png
- lib/assets/images/bar80.png - lib/assets/images/bar80.png
- lib/assets/images/coach80.png - lib/assets/images/coach80.png
- lib/assets/images/time80.png - lib/assets/images/time80.png
- lib/assets/images/event80.png - lib/assets/images/event80.png
- lib/assets/images/eana.png
# To add assets to your application, add an assets section, like this: # To add assets to your application, add an assets section, like this:
# assets: # assets:
......
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