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,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
size | ComponentSize? | No | null |
value | DateTime? | No | null |
initialDate | DateTime? | No | null |
minimumDate | DateTime? | No | null |
maximumDate | DateTime? | No | null |
firstDayOfWeek | int? | No | null |
markedDates | List<DateTime> | No | const [] |
onChanged | ValueChanged<DateTime> | Yes | — |
backgroundColor | Color? | No | null |
padding | EdgeInsetsGeometry? | No | null |
accentColor | Color? | No | null |
borderRadius | double? | No | null |
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.

