Skip to content
pubscout

kalender

0.34.0, released 3 days ago by kdab.com

A customizable calendar widget with day, multi-day, month, and schedule views.

WASM-ready
$ flutter pub add kalender
Source repository

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.

Works with

Packages commonly used together with kalender: ones it builds on, ones built on it, and its own family.