From 1a7ed18998d75a96e6d78ce6b4ed337e97680718 Mon Sep 17 00:00:00 2001 From: yashovardhan99 Date: Fri, 7 Jun 2019 19:10:17 +0530 Subject: [PATCH] Temp fix for corner icon buttons - moved out of bottomAppBar --- lib/pages/home_page.dart | 79 +++++++++++++++++++++------------------- 1 file changed, 41 insertions(+), 38 deletions(-) diff --git a/lib/pages/home_page.dart b/lib/pages/home_page.dart index bf92f0a..358f709 100644 --- a/lib/pages/home_page.dart +++ b/lib/pages/home_page.dart @@ -51,7 +51,39 @@ class _HomePageState extends State ), ), ), - ) + ), + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Padding( + padding: const EdgeInsets.all(8.0), + child: IconButton( + icon: Icon( + FontAwesomeIcons.podcast, + color: Colors.deepPurpleAccent, + ), + onPressed: () { + print("News List"); + Navigator.of(context).pushNamed("/news_list"); + }, + tooltip: "Medical News", + ), + ), + Padding( + padding: const EdgeInsets.all(8.0), + child: IconButton( + icon: Icon( + EvaIcons.messageCircleOutline, + color: Colors.deepPurpleAccent, + ), + onPressed: () { + print("Assistant"); + Navigator.of(context).pushNamed("/assistant"); + }, + tooltip: "AI Assistant", + ), + ) + ],), ], ), ), @@ -146,43 +178,14 @@ class _HomePageState extends State ), ), ), - bottomNavigationBar: BottomAppBar( - shape: CircularNotchedRectangle(), - child: Row( - mainAxisSize: MainAxisSize.max, - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Padding( - padding: const EdgeInsets.all(8.0), - child: IconButton( - icon: Icon( - FontAwesomeIcons.podcast, - color: Colors.deepPurpleAccent, - ), - onPressed: () { - print("News List"); - Navigator.of(context).pushNamed("/news_list"); - }, - tooltip: "Medical News", - ), - ), - Padding( - padding: const EdgeInsets.all(8.0), - child: IconButton( - icon: Icon( - EvaIcons.messageCircleOutline, - color: Colors.deepPurpleAccent, - ), - onPressed: () { - print("Assistant"); - Navigator.of(context).pushNamed("/assistant"); - }, - tooltip: "AI Assistant", - ), - ) - ], - ), - ), +// bottomNavigationBar: BottomAppBar( +// shape: CircularNotchedRectangle(), +// child: Row( +// mainAxisSize: MainAxisSize.max, +// mainAxisAlignment: MainAxisAlignment.spaceBetween, +// +// ), +// ), ); } }