EasyDateTimeLinePicker class
A customizable date and time picker widget for Flutter applications.
This widget provides a horizontal timeline interface for selecting dates, with various customization options for appearance and behavior.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- EasyDateTimeLinePicker
Constructors
-
EasyDateTimeLinePicker.new({Key? key, EasyDatePickerController? controller, required DateTime firstDate, required DateTime lastDate, required DateTime? focusedDate, required OnDateChangeCallBack? onDateChange, DateTime? currentDate, double itemExtent = defaultDayItemExtent, double daySeparatorPadding = defaultDaySeparatorPadding, SelectionMode? selectionMode, Locale? locale, ScrollPhysics? physics, DisableStrategy disableStrategy = const DisableStrategy.none(), List<
DayElement> dayElementsOrder = const [DayElement.top(), DayElement.middle(), DayElement.bottom()], bool? ignoreUserInteractionOnAnimating, TimelineOptions? timelineOptions, HeaderOptions headerOptions = const HeaderOptions(), MonthYearPickerOptions monthYearPickerOptions = const MonthYearPickerOptions()}) - Creates an EasyDateTimeLinePicker with default day parts.
- EasyDateTimeLinePicker.itemBuilder({Key? key, EasyDatePickerController? controller, required DateTime firstDate, required DateTime lastDate, required DateTime? focusedDate, DateTime? currentDate, required double itemExtent, required ItemBuilderPickerCallBack itemBuilder, double daySeparatorPadding = defaultDaySeparatorPadding, required OnDateChangeCallBack? onDateChange, SelectionMode? selectionMode = const SelectionMode.autoCenter(), Locale? locale, ScrollPhysics? physics, DisableStrategy disableStrategy = const DisableStrategy.none(), bool? ignoreUserInteractionOnAnimating = true, TimelineOptions? timelineOptions = const TimelineOptions(), MonthYearPickerOptions monthYearPickerOptions = const MonthYearPickerOptions(), HeaderOptions headerOptions = const HeaderOptions()})
- Creates an EasyDateTimeLinePicker with a custom item builder.
Properties
- controller → EasyDatePickerController?
-
Controller for the date picker. Can be used to programmatically control the picker.
final
- currentDate → DateTime
-
The current date. Defaults to today's date if not provided.
final
- daySeparatorPadding → double
-
The padding between day separators.
final
- disableStrategy → DisableStrategy
-
Strategy for disabling certain dates in the picker.
for example: to disable dates before today.
final
- firstDate → DateTime
-
The earliest date the user is permitted to pick.
final
- focusedDate → DateTime?
-
The date to focus on when the picker is first displayed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerOptions → HeaderOptions
-
Defines the options for customizing the header of the date picker.
final
- ignoreUserInteractionOnAnimating → bool?
-
Whether to ignore user interaction while the picker is animating default is true.
final
- itemExtent → double
-
The width of each day item in the picker.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- lastDate → DateTime
-
The latest date the user is permitted to pick.
final
- locale → Locale?
-
The locale to use for formatting dates default locale is
en_US
.final - monthYearPickerOptions → MonthYearPickerOptions
-
Defines the options for the MonthYearPicker widget.
final
- onDateChange → OnDateChangeCallBack?
-
Callback that is called when the selected date changes.
final
- physics → ScrollPhysics?
-
The scroll physics to use for the picker.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectionMode → SelectionMode?
-
Determines how the selected date is positioned in the picker.
final
- timelineOptions → TimelineOptions?
-
Additional options for customizing the timeline appearance.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited