kalender
0.34.0, released 3 days ago by kdab.com
A customizable calendar widget with day, multi-day, month, and schedule views.
What it does
Provides a calendar widget supporting day, multi-day, month, and schedule views. Includes features such as drag-and-drop rescheduling, event resizing, timezones, and customizable appearance and behavior.
AI-written summary of version 0.34.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a calendar component with day, multi-day, month, and schedule views.
- Your application requires drag-and-drop event rescheduling and resizing.
- You need timezone-aware event handling.
Skip it when
- You only need a simple date picker widget instead of a full calendar/scheduler.
- You are not using Flutter.
Strengths
- Multiple built-in views (Day, Multi-day, Month, Schedule).
- Supports drag-and-drop rescheduling and event resizing.
- Timezone-aware with localization support.
Weaknesses
- Still in development with breaking changes landing in minor releases until 1.0.0.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 8
Add the package via pub add. Optional timezone and intl packages can be added for location and locale support.
import 'package:flutter/material.dart';
import 'package:kalender/kalender.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(body: MyCalendar()),
);
}
}
class MyCalendar extends StatefulWidget {
const MyCalendar({super.key});
@override
State<MyCalendar> createState() => _MyCalendarState();
}
class _MyCalendarState extends State<MyCalendar> {
final eventsController = DefaultEventsController();
final kalenderController = KalenderController(
viewConfiguration: MultiDayViewConfiguration.week(
initialTimeOfDay: const KalenderTime(hour: 7, minute: 0),
),
);
@override
void dispose() {
kalenderController.dispose();
eventsController.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return KalenderView(
eventsController: eventsController,
kalenderController: kalenderController,
callbacks: KalenderCallbacks(
onEventCreated: (event) => eventsController.addEvent(event),
),
);
}
}Alternatives
Packages that do the same job and could replace kalender.
- calendar_view
A Flutter package providing multiple calendar views and event management functionality.
83Compare - flutter_joystick
A virtual joystick widget for Flutter applications with high customization.
81Compare - flash
Customizable alert and toast widget for Flutter
50Compare - flutter_polls
Customizable polls widget for Flutter applications.
50Compare
Works with
Packages commonly used together with kalender: ones it builds on, ones built on it, and its own family.
- clockkalender depends on itA fakeable wrapper for dart:core clock APIs.
- intlkalender depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- timezonekalender depends on itTime zone databases and time zone aware DateTime class in Dart.
- universal_platformkalender depends on itPlatform detection across Flutter, Dart web, and desktop without errors
- scrollable_positioned_listkalender depends on itA Flutter list with helper methods to programmatically scroll to an item.
- linked_pageviewkalender depends on itSynchronize scroll activity and viewport fractions across multiple PageViews