Removed Bottom Nav Bar

This commit is contained in:
clopezr1
2020-02-21 16:34:33 -05:00
parent 334147bb6f
commit ff2fe725b5
2 changed files with 2 additions and 29 deletions

View File

@@ -20,7 +20,6 @@ class Home extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
int _currentBodyIndex = 0;
Item selectedSport; Item selectedSport;
return StatefulBuilder( return StatefulBuilder(
@@ -52,33 +51,7 @@ class Home extends StatelessWidget {
), ),
backgroundColor: _curSport[1], backgroundColor: _curSport[1],
), ),
body: _children[_currentBodyIndex], body: _children[2],
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"))
],
),
)); ));
} }
} }

View File

@@ -1,5 +1,5 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'home_widget2.dart'; import 'home_widget.dart';
void main() => runApp(App()); void main() => runApp(App());