Created
November 12, 2023 16:38
-
-
Save rafaelqueiroz88/09c4fcaee5c142804945090c804ac486 to your computer and use it in GitHub Desktop.
Day View
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter_week_view/flutter_week_view.dart'; | |
DateTime now = DateTime.now(); | |
DateTime date = DateTime(now.year, now.month, now.day); | |
DayView dayView() { | |
return DayView( | |
date: now, | |
events: [ | |
FlutterWeekViewEvent( | |
title: 'Agenda Reservada', | |
description: 'Some sort of comment here', | |
start: date.add(const Duration(hours: 13)), | |
end: date.add(const Duration(hours: 14)), | |
), | |
], | |
minimumTime: const HourMinute(hour: 8, minute: 0), | |
maximumTime: const HourMinute(hour: 19, minute: 0), | |
style: DayViewStyle.fromDate( | |
date: now, | |
currentTimeCircleColor: Colors.pink, | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment