Commit ee91f8f2 authored by wonko's avatar wonko

Drawer für "special" pages

parent e3b47474
......@@ -52,10 +52,33 @@ class _NoSHomePageState extends State<NoSHomePage> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: Text(widget.title),
),
drawer: Drawer(
child: ListView(
padding: EdgeInsets.zero,
children: [
DrawerHeader(
child: Text('Night of Science'),
decoration: BoxDecoration(
color: Colors.blue,
),
),
ListTile(
title: Text('Sponsoren'),
onTap: () {
Navigator.pop(context);
},
),
ListTile(
title: Text('Item 2'),
onTap: () {
Navigator.pop(context);
},
),
],
),
),
body: _children[_selectedIndex],
bottomNavigationBar: BottomNavigationBar(
items: <BottomNavigationBarItem>[
......
......@@ -167,6 +167,7 @@ class RoomSchedule extends StatelessWidget {
pinned: true,
floating: false,
primary: false,
automaticallyImplyLeading: false,
flexibleSpace: FlexibleSpaceBar(
centerTitle: true,
title: Text(room.name),
......
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