Skip to content

Commit

Permalink
Temp fix for corner icon buttons - moved out of bottomAppBar
Browse files Browse the repository at this point in the history
  • Loading branch information
yashovardhan99 committed Jun 7, 2019
1 parent b76680e commit 1a7ed18
Showing 1 changed file with 41 additions and 38 deletions.
79 changes: 41 additions & 38 deletions lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,39 @@ class _HomePageState extends State<HomePage>
),
),
),
)
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
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",
),
)
],),
],
),
),
Expand Down Expand Up @@ -146,43 +178,14 @@ class _HomePageState extends State<HomePage>
),
),
),
bottomNavigationBar: BottomAppBar(
shape: CircularNotchedRectangle(),
child: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
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,
//
// ),
// ),
);
}
}

0 comments on commit 1a7ed18

Please sign in to comment.