Timetable Widget Package for Flutter
- Use
container
withinstack
to set the background for timetable. (color/image) - Remove
unnecessary
properties from class.
- Add optional parameter
showMinutes
inUtils.hourFormatter
function. - Using widget class instead of a function returning widget in
lib/src/views/timetable_view.dart
. - Top row width is following the lane width. dbe733fe3fbdd5d6f3a7f7d47a72b23a098bb953
- Added
heroTag
toTableEvent
, andEventView
now has aHero
. - Added
subtitle
property that can replace the default time inEventView
.
Contents below are from the original README.md
https://pub.dev/packages/flutter_timetable_view#-installing-tab-
import 'package:flutter_timetable_view/flutter_timetable_view.dart';
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
body: TimetableView(
laneEventsList: [
LaneEvents(
lane: Lane(
name: 'Track A',
),
events: [
TableEvent(
title: 'An event 1',
start: TableEventTime(hour: 10, minute: 0),
end: TableEventTime(hour: 11, minute: 20),
),
]
),
],
),
);
}
}
todo
Use case is here
- Fork it
- Create your feature branch (git checkout -b new_feature_branch)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin new_feature_branch)
- Create new Pull Request
MIT License
Copyright (c) 2020 Kazuki Yamaguchi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.