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());