Skip to content
On this page

Calendar

A calendar grid for selecting a date.

Calendar in FluttyUICalendar 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.

Calendar

const Calendar({
  super.key,
  this.size,
  this.selectedDate,
  this.isControlled = false,
  this.initialDate,
  this.markedDates = const [],
  this.minimumDate,
  this.maximumDate,
  this.firstDayOfWeek,
  this.onDateSelected,
  this.backgroundColor,
  this.padding,
  this.accentColor,
  this.borderRadius,
});
ParameterTypeRequiredDefault
keyKey?Nonull
sizeComponentSize?Nonull
selectedDateDateTime?Nonull
isControlledboolNofalse
initialDateDateTime?Nonull
markedDatesList<DateTime>Noconst []
minimumDateDateTime?Nonull
maximumDateDateTime?Nonull
firstDayOfWeekint?Nonull
onDateSelectedValueChanged<DateTime>?Nonull
backgroundColorColor?Nonull
paddingEdgeInsetsGeometry?Nonull
accentColorColor?Nonull
borderRadiusdouble?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/calendar/calendar.dart

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

DartFlutter

Get started with FluttyUI