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.
DateField
const DateField({
super.key,
this.size,
this.value,
this.initialDate,
required this.onChanged,
this.placeholder,
this.enabled = true,
this.showPickerOnTap = true,
this.minimumDate,
this.maximumDate,
this.firstDayOfWeek,
this.backgroundColor,
this.foregroundColor,
this.placeholderColor,
this.borderColor,
this.focusColor,
this.borderRadius,
this.padding,
this.height,
this.pickerPadding,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
size | ComponentSize? | No | null |
value | DateTime? | No | null |
initialDate | DateTime? | No | null |
onChanged | ValueChanged<DateTime> | Yes | — |
placeholder | String? | No | null |
enabled | bool | No | true |
showPickerOnTap | bool | No | true |
minimumDate | DateTime? | No | null |
maximumDate | DateTime? | No | null |
firstDayOfWeek | int? | No | null |
backgroundColor | Color? | No | null |
foregroundColor | Color? | No | null |
placeholderColor | Color? | No | null |
borderColor | Color? | No | null |
focusColor | Color? | No | null |
borderRadius | double? | No | null |
padding | EdgeInsetsGeometry? | No | null |
height | double? | No | null |
pickerPadding | EdgeInsetsGeometry? | 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_field/date_field.dart
This reference is generated from the DateField declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

