infinite_calendar_view 2.11.2
infinite_calendar_view: ^2.11.2 copied to clipboard
Easily build your different views of your calendar with this package. Month, week, multi days, one day, list ... and many features of the calendar widget.
import 'package:flutter/material.dart';
import 'package:infinite_calendar_view/infinite_calendar_view.dart';
import 'app.dart';
class Example extends StatelessWidget {
const Example({super.key, required this.eventsController});
final EventsController eventsController;
static final heightPerMinute = 1.0;
static final initialVerticalScrollOffset = heightPerMinute * 7 * 60;
@override
Widget build(BuildContext context) {
return EventsPlanner(
controller: eventsController,
daysShowed: 3,
heightPerMinute: heightPerMinute,
initialVerticalScrollOffset: initialVerticalScrollOffset,
dayParam: DayParam(
slotSelectionParam: SlotSelectionParam(
enableLongPressSlotSelection: true,
),
),
);
}
}
void main() {
runApp(App());
}