Skip to content
On this page

DateRangePicker

A control for choosing a start and end date.

DateRangePicker in FluttyUIDateRangePicker 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.

DateRangePicker

const DateRangePicker({
  super.key,
  this.size,
  this.startDate,
  this.endDate,
  this.initialMonth,
  this.minimumDate,
  this.maximumDate,
  this.firstDayOfWeek,
  required this.onChanged,
  this.backgroundColor,
  this.padding,
  this.accentColor,
  this.borderRadius,
});
ParameterTypeRequiredDefault
keyKey?Nonull
sizeComponentSize?Nonull
startDateDateTime?Nonull
endDateDateTime?Nonull
initialMonthDateTime?Nonull
minimumDateDateTime?Nonull
maximumDateDateTime?Nonull
firstDayOfWeekint?Nonull
onChangedValueChanged<CalendarDateRange?>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_range_picker/date_range_picker.dart

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

DartFlutter

Get started with FluttyUI