put old header and navbar back

This commit is contained in:
2020-02-21 15:46:15 -05:00
parent 63b244ff86
commit e9d8c3b0c1

View File

@@ -10,6 +10,9 @@ class HomeState extends State<Home> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('UNCC Athletics App'),
),
body: ListView(
children: <Widget>[
HorizontalNewsFeed(title: Text("Basketball")),
@@ -17,8 +20,23 @@ class HomeState extends State<Home> {
HorizontalNewsFeed(title: Text("Football")),
],
),
appBar: AppBar(
title: Text("u mum gay"),
bottomNavigationBar: BottomNavigationBar(
type: BottomNavigationBarType.fixed,
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"))
],
),
);
}
@@ -99,521 +117,3 @@ class NewsCard extends StatelessWidget {
);
}
}
//class _HomeState extends State<Home>{
// int _currentIndex = 0;
// final List<Widget> _children = [
// ListView(
// scrollDirection: Axis.vertical,
// children: <Widget>[
// Container(
// height: 175,
// margin: EdgeInsets.symmetric(vertical: 10),
// child: ListView(
// scrollDirection: Axis.horizontal,
// children: <Widget>[
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// ListTile(
// leading: FlutterLogo(),
// title: Text('Testing Fancy Shit'),
// ),
// Expanded(
// child: Container(
// color: Colors.orange,
// ),
// ),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// ListTile(
// leading: FlutterLogo(),
// title: Text('Testing Fancy Shit'),
// ),
// Expanded(
// child: Container(
// color: Colors.orange,
// ),
// ),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// ListTile(
// leading: FlutterLogo(),
// title: Text('Testing Fancy Shit'),
// ),
// Expanded(
// child: Container(
// color: Colors.orange,
// ),
// ),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// ListTile(
// leading: FlutterLogo(),
// title: Text('Testing Fancy Shit'),
// ),
// Expanded(
// child: Container(
// color: Colors.orange,
// ),
// ),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// ListTile(
// leading: FlutterLogo(),
// title: Text('Testing Fancy Shit'),
// ),
// Expanded(
// child: Container(
// color: Colors.orange,
// ),
// ),
// ],
// ),
// ),
// ),
// ],
// ),
// ),
// Container(
// height: 175,
// margin: EdgeInsets.symmetric(vertical: 10),
// child: ListView(
// scrollDirection: Axis.horizontal,
// children: <Widget>[
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// ListTile(
// leading: FlutterLogo(),
// title: Text('Testing Fancy Shit'),
// ),
// Expanded(
// child: Container(
// color: Colors.green,
// ),
// ),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// ListTile(
// leading: FlutterLogo(),
// title: Text('Testing Fancy Shit'),
// ),
// Expanded(
// child: Container(
// color: Colors.green,
// ),
// ),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// ListTile(
// leading: FlutterLogo(),
// title: Text('Testing Fancy Shit'),
// ),
// Expanded(
// child: Container(
// color: Colors.green,
// ),
// ),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// ListTile(
// leading: FlutterLogo(),
// title: Text('Testing Fancy Shit'),
// ),
// Expanded(
// child: Container(
// color: Colors.green,
// ),
// ),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children:<Widget>[
// ListTile(
// leading: FlutterLogo(),
// title: Text('Testing Fancy Shit'),
// ),
// Expanded(
// child: Container(
// color: Colors.green,
// ),
// ),
// ],
// ),
// ),
// ),
// ],
// ),
// ),
// Container(
// height: 175,
// margin: EdgeInsets.symmetric(vertical: 10),
// child: ListView(
// scrollDirection: Axis.horizontal,
// children: <Widget>[
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// Expanded(
// child: Container(
// color: Colors.purple,
// ),
// ),
// Text('Testing'),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// Expanded(
// child: Container(
// color: Colors.purple,
// ),
// ),
// Text('Testing'),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// Expanded(
// child: Container(
// color: Colors.purple,
// ),
// ),
// Text('Testing'),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// Expanded(
// child: Container(
// color: Colors.purple,
// ),
// ),
// Text('Testing'),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// Expanded(
// child: Container(
// color: Colors.purple,
// ),
// ),
// Text('Testing'),
// ],
// ),
// ),
// ),
// ],
// ),
// ),
// Container(
// height: 175,
// margin: EdgeInsets.symmetric(vertical: 10),
// child: ListView(
// scrollDirection: Axis.horizontal,
// children: <Widget>[
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// Expanded(
// child: Container(
// color: Colors.blue, ),
// ),
// Text('Testing'),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// Expanded(
// child: Container(
// color: Colors.blue,
// ),
// ),
// Text('Testing'),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// Expanded(
// child: Container(
// color: Colors.blue,
// ),
// ),
// Text('Testing'),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// Expanded(
// child: Container(
// color: Colors.blue,
// ),
// ),
// Text('Testing'),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// Expanded(
// child: Container(
// color: Colors.blue,
// ),
// ),
// Text('Testing'),
// ],
// ),
// ),
// ),
// ],
// ),
// ),
// Container(
// height: 175,
// margin: EdgeInsets.symmetric(vertical: 10),
// child: ListView(
// scrollDirection: Axis.horizontal,
// children: <Widget>[
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// Expanded(
// child: Container(
// color: Colors.red,
// ),
// ),
// Text('Testing'),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// Expanded(
// child: Container(
// color: Colors.red,
// ),
// ),
// Text('Testing'),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// Expanded(
// child: Container(
// color: Colors.red,
// ),
// ),
// Text('Testing'),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// Expanded(
// child: Container(
// color: Colors.red,
// ),
// ),
// Text('Testing'),
// ],
// ),
// ),
// ),
// Container(
// width: 325,
// margin: EdgeInsets.symmetric(horizontal: 10),
// child: Card(
// child: Column(
// children: <Widget>[
// Expanded(
// child: Container(
// color: Colors.red,
// ),
// ),
// Text('Testing'),
// ],
// ),
// ),
// ),
// ],
// ),
// ),
//
// ],
// ),
// PlaceholderWidget(Colors.orange),
// PlaceholderWidget(Colors.blue),
// PlaceholderWidget(Colors.red),
// PlaceholderWidget(Colors.black38),
// ];
//
// @override
// Widget build(BuildContext context) {
// return Scaffold(
// appBar: AppBar(
// title: Text('UNCC Athletics App'),
// ),
// body: Container(child: _children[_currentIndex]),
// bottomNavigationBar: BottomNavigationBar(
// type: BottomNavigationBarType.fixed,
// 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"))
// ],
// ),
// );
// }
//}