Skip to content
On this page

DateTimePicker

A combined date and time selection control.

DateTimePicker in FluttyUIDateTimePicker 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.

DateTimePicker

const DateTimePicker({
  super.key,
  this.size,
  required this.value,
  required this.onChanged,
  this.minimumDate,
  this.maximumDate,
  this.firstDayOfWeek,
  this.minuteInterval = 5,
  this.isInfinity = true,
  this.backgroundColor,
  this.accentColor,
  this.borderRadius,
  this.padding,
});
ParameterTypeRequiredDefault
keyKey?Nonull
sizeComponentSize?Nonull
valueDateTimeYes—
onChangedValueChanged<DateTime>Yes—
minimumDateDateTime?Nonull
maximumDateDateTime?Nonull
firstDayOfWeekint?Nonull
minuteIntervalintNo5
isInfinityboolNotrue
backgroundColorColor?Nonull
accentColorColor?Nonull
borderRadiusdouble?Nonull
paddingEdgeInsetsGeometry?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_time_picker/date_time_picker.dart

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

DartFlutter

Get started with FluttyUI