From e9d8c3b0c1b4cf2176cf6de4e1e2027bf76f27fa Mon Sep 17 00:00:00 2001 From: David Date: Fri, 21 Feb 2020 15:46:15 -0500 Subject: [PATCH] put old header and navbar back --- lib/home_widget.dart | 540 ++----------------------------------------- 1 file changed, 20 insertions(+), 520 deletions(-) diff --git a/lib/home_widget.dart b/lib/home_widget.dart index c2571fd..836765a 100644 --- a/lib/home_widget.dart +++ b/lib/home_widget.dart @@ -10,6 +10,9 @@ class HomeState extends State { @override Widget build(BuildContext context) { return Scaffold( + appBar: AppBar( + title: Text('UNCC Athletics App'), + ), body: ListView( children: [ HorizontalNewsFeed(title: Text("Basketball")), @@ -17,8 +20,23 @@ class HomeState extends State { 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{ -// int _currentIndex = 0; -// final List _children = [ -// ListView( -// scrollDirection: Axis.vertical, -// children: [ -// Container( -// height: 175, -// margin: EdgeInsets.symmetric(vertical: 10), -// child: ListView( -// scrollDirection: Axis.horizontal, -// children: [ -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// 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: [ -// 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: [ -// 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: [ -// 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: [ -// 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: [ -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// 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: [ -// 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: [ -// 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: [ -// 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:[ -// 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: [ -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// Expanded( -// child: Container( -// color: Colors.purple, -// ), -// ), -// Text('Testing'), -// ], -// ), -// ), -// ), -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// Expanded( -// child: Container( -// color: Colors.purple, -// ), -// ), -// Text('Testing'), -// ], -// ), -// ), -// ), -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// Expanded( -// child: Container( -// color: Colors.purple, -// ), -// ), -// Text('Testing'), -// ], -// ), -// ), -// ), -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// Expanded( -// child: Container( -// color: Colors.purple, -// ), -// ), -// Text('Testing'), -// ], -// ), -// ), -// ), -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// Expanded( -// child: Container( -// color: Colors.purple, -// ), -// ), -// Text('Testing'), -// ], -// ), -// ), -// ), -// ], -// ), -// ), -// Container( -// height: 175, -// margin: EdgeInsets.symmetric(vertical: 10), -// child: ListView( -// scrollDirection: Axis.horizontal, -// children: [ -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// Expanded( -// child: Container( -// color: Colors.blue, ), -// ), -// Text('Testing'), -// ], -// ), -// ), -// ), -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// Expanded( -// child: Container( -// color: Colors.blue, -// ), -// ), -// Text('Testing'), -// ], -// ), -// ), -// ), -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// Expanded( -// child: Container( -// color: Colors.blue, -// ), -// ), -// Text('Testing'), -// ], -// ), -// ), -// ), -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// Expanded( -// child: Container( -// color: Colors.blue, -// ), -// ), -// Text('Testing'), -// ], -// ), -// ), -// ), -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// Expanded( -// child: Container( -// color: Colors.blue, -// ), -// ), -// Text('Testing'), -// ], -// ), -// ), -// ), -// ], -// ), -// ), -// Container( -// height: 175, -// margin: EdgeInsets.symmetric(vertical: 10), -// child: ListView( -// scrollDirection: Axis.horizontal, -// children: [ -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// Expanded( -// child: Container( -// color: Colors.red, -// ), -// ), -// Text('Testing'), -// ], -// ), -// ), -// ), -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// Expanded( -// child: Container( -// color: Colors.red, -// ), -// ), -// Text('Testing'), -// ], -// ), -// ), -// ), -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// Expanded( -// child: Container( -// color: Colors.red, -// ), -// ), -// Text('Testing'), -// ], -// ), -// ), -// ), -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// Expanded( -// child: Container( -// color: Colors.red, -// ), -// ), -// Text('Testing'), -// ], -// ), -// ), -// ), -// Container( -// width: 325, -// margin: EdgeInsets.symmetric(horizontal: 10), -// child: Card( -// child: Column( -// children: [ -// 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")) -// ], -// ), -// ); -// } -//}