Skip to content
On this page

Agenda

A schedule view for displaying and moving dated events.

Agenda in FluttyUIAgenda in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

Agenda

const Agenda({
  super.key,
  required this.events,
  this.selectedDate,
  this.firstDayOfWeek,
  this.currentTime,
  this.splitController,
  this.initialView = AgendaView.day,
  this.height = 680,
  this.dayStartHour = 0,
  this.dayEndHour = 24,
  this.initialScrollHour = 9,
  this.hourHeight = 60,
  this.snapMinutes = 15,
  this.resizeSnapMinutes = 5,
  this.minDurationMinutes = 5,
  this.onDateChanged,
  this.onViewChanged,
  this.onEventChanged,
  this.onEventSelected,
});
ParameterTypeRequiredDefault
keyKey?Nonull
eventsList<AgendaEvent>Yes—
selectedDateDateTime?Nonull
firstDayOfWeekint?Nonull
currentTimeDateTime?Nonull
splitControllerSplitViewController?Nonull
initialViewAgendaViewNoAgendaView.day
heightdoubleNo680
dayStartHourintNo0
dayEndHourintNo24
initialScrollHourdoubleNo9
hourHeightdoubleNo60
snapMinutesintNo15
resizeSnapMinutesintNo5
minDurationMinutesintNo5
onDateChangedValueChanged<DateTime>?Nonull
onViewChangedValueChanged<AgendaView>?Nonull
onEventChangedValueChanged<AgendaEvent>?Nonull
onEventSelectedValueChanged<AgendaEvent>?Nonull

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/date_time/agenda/agenda.dart

This reference is generated from the Agenda declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI