Removed Bottom Nav Bar
This commit is contained in:
@@ -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"))
|
|
||||||
],
|
|
||||||
),
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user