FLineCalendar class
A line calendar displays dates in a single horizontal, scrollable line.
Desktop and web note
As the dates scroll on the horizontal axis (left to right or right to left), hold Shift while using the mouse scroll wheel to scroll the list.
See:
- https://forui.dev/docs/data/line-calendar for working examples.
- FLineCalendarStyle for customizing a line calendar's style.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- FLineCalendar
Constructors
-
FLineCalendar.new({FCalendarController<
DateTime?> ? controller, FLineCalendarStyle? style, AlignmentDirectional initialScrollAlignment = AlignmentDirectional.center, ScrollPhysics? physics, double? cacheExtent, ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual, ValueWidgetBuilder<FLineCalendarItemData> builder = _builder, ValueChanged<DateTime?> ? onChange, bool? toggleable, DateTime? start, DateTime? end, DateTime? initialScroll, DateTime? initialSelection, DateTime? today, Key? key}) - Creates a FLineCalendar.
Properties
-
builder
→ ValueWidgetBuilder<
FLineCalendarItemData> -
The builder used to build a line calendar item. Defaults to returning the given child.
final
- cacheExtent → double?
-
The scrollable area's cache extent in logical pixels.
final
-
controller
→ FCalendarController<
DateTime?> ? -
The controller.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialScrollAlignment → AlignmentDirectional
-
The alignment to which the initially scrolled date will be aligned. Defaults to Alignment.center.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardDismissBehavior → ScrollViewKeyboardDismissBehavior
-
ScrollViewKeyboardDismissBehavior the defines how this FLineCalendar will dismiss the keyboard automatically.
final
-
onChange
→ ValueChanged<
DateTime?> ? -
The callback that is called when the date changes.
final
- physics → ScrollPhysics?
-
How the scroll view should respond to user input.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → FLineCalendarStyle?
-
The style.
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.
override
-
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