Commit 34572871 authored by wonko's avatar wonko

converted list to sliverlist inc sliverappbar

parent 0e93ebed
......@@ -99,14 +99,24 @@ class RoomSchedule extends StatelessWidget {
Widget build(BuildContext context) {
return RefreshIndicator(
onRefresh: LectureData().reload,
child: ListView.builder(
child: CustomScrollView(
controller: this._scrollController,
itemExtent: 250,
itemCount: room.timeSlots.length,
itemBuilder: (context, index) => Column(children: <Widget>[
Divider(),
Expanded(child: LectureCard(room.timeSlots[index].lecture))
])));
slivers: <Widget>[
const SliverAppBar(
pinned: true,
expandedHeight: 250.0,
flexibleSpace: FlexibleSpaceBar(
title: Text('Demo'),
)),
SliverFixedExtentList(
itemExtent: 250,
delegate: SliverChildBuilderDelegate((context, index) =>
Column(children: <Widget>[
Divider(),
Expanded(
child: LectureCard(room.timeSlots[index].lecture))
])))
]));
}
}
......
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