Commit e3b47474 authored by wonko's avatar wonko

Bottom nav reduced to schedule&campus

parent 800ace2a
......@@ -14,9 +14,9 @@ class MyApp extends StatelessWidget {
return MaterialApp(
title: 'Night of Science',
theme: ThemeData.dark().copyWith(
//primarySwatch: Colors.blue,
//brightness: Brightness.dark,
),
//primarySwatch: Colors.blue,
//brightness: Brightness.dark,
),
home: NoSHomePage(title: 'Night of Science'),
);
}
......@@ -30,27 +30,20 @@ class NoSHomePage extends StatefulWidget {
_NoSHomePageState createState() => _NoSHomePageState();
}
class _NoS_Single_HomePageState extends State<NoSHomePage> {
@override
Widget build(BuildContext context){
return Scaffold(
body: ScheduleWidget()
);
Widget build(BuildContext context) {
return Scaffold(body: ScheduleWidget());
}
}
class _NoSHomePageState extends State<NoSHomePage> {
int _selectedIndex = 0;
LectureData lectureData = LectureData();
final List<Widget> _children = [
NewsWidget(),
ToursWidget(),
//NewsWidget(),
//ToursWidget(),
ScheduleWidget(),
CampusWidget(),
];
......@@ -66,14 +59,8 @@ class _NoSHomePageState extends State<NoSHomePage> {
body: _children[_selectedIndex],
bottomNavigationBar: BottomNavigationBar(
items: <BottomNavigationBarItem>[
BottomNavigationBarItem(
icon: NewsWidget.icon,
title: Text('News'),
backgroundColor: NewsWidget.color),
BottomNavigationBarItem(
icon: ToursWidget.icon,
title: Text('Tours'),
backgroundColor: ToursWidget.color),
//BottomNavigationBarItem( icon: NewsWidget.icon, title: Text('News'), backgroundColor: NewsWidget.color),
//BottomNavigationBarItem(icon: ToursWidget.icon,title: Text('Tours'),backgroundColor: ToursWidget.color),
BottomNavigationBarItem(
icon: ScheduleWidget.icon,
title: Text('Schedule'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment