Skip to content
On this page

TimePicker

A control for selecting a time of day.

TimePicker in FluttyUITimePicker 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.

TimePicker

const TimePicker({
  super.key,
  this.size,
  required this.value,
  required this.onChanged,
  this.minimumDate,
  this.maximumDate,
  this.minuteInterval = 5,
  this.height,
  this.itemExtent,
  this.enabled = true,
  this.haptics = true,
  this.isInfinity = true,
  this.backgroundColor,
  this.accentColor,
  this.textColor,
  this.mutedColor,
  this.borderRadius,
});
ParameterTypeRequiredDefault
keyKey?Nonull
sizeComponentSize?Nonull
valueDateTimeYes—
onChangedValueChanged<DateTime>Yes—
minimumDateDateTime?Nonull
maximumDateDateTime?Nonull
minuteIntervalintNo5
heightdouble?Nonull
itemExtentdouble?Nonull
enabledboolNotrue
hapticsboolNotrue
isInfinityboolNotrue
backgroundColorColor?Nonull
accentColorColor?Nonull
textColorColor?Nonull
mutedColorColor?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/time_picker/time_picker.dart

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

DartFlutter

Get started with FluttyUI