Skip to content
On this page

DatePicker

A date-selection control with a calendar overlay.

DatePicker in FluttyUIDatePicker 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.

DatePicker

const DatePicker({
  super.key,
  this.size,
  this.value,
  this.initialDate,
  this.minimumDate,
  this.maximumDate,
  this.firstDayOfWeek,
  this.markedDates = const [],
  required this.onChanged,
  this.backgroundColor,
  this.padding,
  this.accentColor,
  this.borderRadius,
});
ParameterTypeRequiredDefault
keyKey?Nonull
sizeComponentSize?Nonull
valueDateTime?Nonull
initialDateDateTime?Nonull
minimumDateDateTime?Nonull
maximumDateDateTime?Nonull
firstDayOfWeekint?Nonull
markedDatesList<DateTime>Noconst []
onChangedValueChanged<DateTime>Yes—
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/date_picker/date_picker.dart

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

DartFlutter

Get started with FluttyUI