From ff2fe725b5260b660de3f93f9877a8f1de25b02d Mon Sep 17 00:00:00 2001 From: clopezr1 Date: Fri, 21 Feb 2020 16:34:33 -0500 Subject: [PATCH] Removed Bottom Nav Bar --- lib/home_widget.dart | 29 +---------------------------- lib/main.dart | 2 +- 2 files changed, 2 insertions(+), 29 deletions(-) diff --git a/lib/home_widget.dart b/lib/home_widget.dart index 174614d..a80d49e 100644 --- a/lib/home_widget.dart +++ b/lib/home_widget.dart @@ -20,7 +20,6 @@ class Home extends StatelessWidget { @override Widget build(BuildContext context) { - int _currentBodyIndex = 0; Item selectedSport; return StatefulBuilder( @@ -52,33 +51,7 @@ class Home extends StatelessWidget { ), backgroundColor: _curSport[1], ), - body: _children[_currentBodyIndex], - bottomNavigationBar: BottomNavigationBar( - type: BottomNavigationBarType.fixed, - onTap: (int index) { - setState(() { - _currentBodyIndex = index; - }); - }, - currentIndex: _currentBodyIndex, - items: [ - BottomNavigationBarItem( - icon: new Icon(Icons.home), - title: new Text("Home"), - ), - BottomNavigationBarItem( - icon: new Icon(Icons.calendar_today), - title: new Text("Schedule")), - BottomNavigationBarItem( - icon: new Icon(Icons.table_chart), - title: new Text("Scores")), - BottomNavigationBarItem( - icon: new Icon(Icons.assessment), - title: new Text("Standings")), - BottomNavigationBarItem( - icon: new Icon(Icons.more_horiz), title: new Text("More")) - ], - ), + body: _children[2], )); } } diff --git a/lib/main.dart b/lib/main.dart index 2edca9a..aad7acc 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'home_widget2.dart'; +import 'home_widget.dart'; void main() => runApp(App());