Commit f055870b authored by wonko's avatar wonko

Zeiten/raum in karte

dinge geglättet
parent 3eebcaaa
......@@ -17,20 +17,34 @@ class MyApp extends StatelessWidget {
//primarySwatch: Colors.blue,
//brightness: Brightness.dark,
),
home: MyHomePage(title: 'Night of Science'),
home: NoSHomePage(title: 'Night of Science'),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key, this.title}) : super(key: key);
class NoSHomePage extends StatefulWidget {
NoSHomePage({Key key, this.title}) : super(key: key);
final String title;
@override
_MyHomePageState createState() => _MyHomePageState();
_NoS_Single_HomePageState createState() => _NoS_Single_HomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
class _NoS_Single_HomePageState extends State<NoSHomePage> {
@override
Widget build(BuildContext context){
return Scaffold(
body: ScheduleWidget()
);
}
}
class _NoSHomePageState extends State<NoSHomePage> {
int _selectedIndex = 0;
LectureData lectureData = LectureData();
......
......@@ -38,8 +38,10 @@ class _ScheduleWidgetState extends State<ScheduleWidget>
return snapshot.hasData
? Stack(
children: <Widget>[
TimesSlider(
_timeScaleScrollController, lectureData.data.rooms[0]),
Padding(
padding: const EdgeInsets.only(top: 100.0),
child: TimesSlider(_timeScaleScrollController,
lectureData.data.rooms[0])),
NotificationListener<ScrollNotification>(
child: PageView(
children: roomViews(),
......@@ -102,20 +104,24 @@ class RoomSchedule extends StatelessWidget {
child: CustomScrollView(
controller: this._scrollController,
slivers: <Widget>[
const SliverAppBar(
SliverAppBar(
pinned: true,
expandedHeight: 250.0,
expandedHeight: 100.0,
flexibleSpace: FlexibleSpaceBar(
title: Text('Demo'),
centerTitle: true,
title: Text(room.name),
)),
SliverFixedExtentList(
itemExtent: 250,
delegate: SliverChildBuilderDelegate((context, index) =>
Column(children: <Widget>[
Divider(),
Expanded(
child: LectureCard(room.timeSlots[index].lecture))
]), childCount: room.timeSlots.length))
delegate: SliverChildBuilderDelegate(
(context, index) => Column(children: <Widget>[
Divider(),
Expanded(
child:
LectureCard(room.timeSlots[index].lecture))
]),
childCount: room.timeSlots.length))
]));
}
}
......@@ -146,6 +152,14 @@ class _LectureCardState extends State<LectureCard> {
title: Text(l.teaser),
subtitle: Text(l.name)),
Spacer(),
Padding(
padding: const EdgeInsets.only(left: 80.0),
child: Column(children: <Widget>[
Align(
alignment: Alignment.centerLeft, child: Text(l.time)),
Align(
alignment: Alignment.centerLeft, child: Text(l.room))
])),
ButtonTheme.bar(
//color:Colors.green,
// make buttons use the appropriate styles for cards
......
import 'package:flutter/material.dart';
import 'data.dart';
import 'graphics.dart';
class TimeslotSchedule extends StatefulWidget {
@override
_TimeSlotScheduleState createState() => _TimeSlotScheduleState();
}
class _TimeSlotScheduleState extends State<TimeslotSchedule> {
@override
Widget build(BuildContext context) {}
}
//class TimeRoster
\ No newline at end of file
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