Skip to content

Instantly share code, notes, and snippets.

@rafaelqueiroz88
Created November 12, 2023 16:38
Show Gist options
  • Save rafaelqueiroz88/09c4fcaee5c142804945090c804ac486 to your computer and use it in GitHub Desktop.
Save rafaelqueiroz88/09c4fcaee5c142804945090c804ac486 to your computer and use it in GitHub Desktop.
Day View
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