Commit c68ab827 authored by Indika NK's avatar Indika NK

added smart notificator animation

parent ed9ff109
...@@ -27,22 +27,23 @@ class _NotificationScreenState extends State<MainNotificationUI> { ...@@ -27,22 +27,23 @@ class _NotificationScreenState extends State<MainNotificationUI> {
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
Padding( Padding(
padding: const EdgeInsets.fromLTRB(8,8,8,8), padding: const EdgeInsets.all(8.0),
child: SizedBox( child: Image.asset('lib/assets/images/notify.gif'),
child: ElevatedButton( ),
style: ElevatedButton.styleFrom( SizedBox(
primary: Colors.green[300], child: ElevatedButton(
elevation: 15, style: ElevatedButton.styleFrom(
shape: RoundedRectangleBorder( primary: Colors.green[300],
borderRadius: BorderRadius.circular(12) elevation: 15,
) shape: RoundedRectangleBorder(
), borderRadius: BorderRadius.circular(12)
onPressed: (){ )
),
onPressed: (){
Navigator.push(context, MaterialPageRoute(builder: (context) => LocalNotificationScreen() )); Navigator.push(context, MaterialPageRoute(builder: (context) => LocalNotificationScreen() ));
}, child: Text("Local Notifications")), }, child: Text("Local Notifications")),
),
), ),
Padding( Padding(
padding: const EdgeInsets.fromLTRB(8,8,8,100), padding: const EdgeInsets.fromLTRB(8,8,8,100),
......
...@@ -125,6 +125,7 @@ flutter: ...@@ -125,6 +125,7 @@ flutter:
- lib/assets/images/wear.gif - lib/assets/images/wear.gif
- lib/assets/images/hospital.gif - lib/assets/images/hospital.gif
- lib/assets/images/lab.gif - lib/assets/images/lab.gif
- lib/assets/images/notify.gif
# 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