FlutterFlowCalendar class

A customizable calendar widget for FlutterFlow.

The FlutterFlowCalendar widget allows you to display a calendar with various customization options. You can customize the color, date format, starting day of the week, header style, and more.

To use this widget, simply create an instance of FlutterFlowCalendar and pass in the desired parameters. You can also provide a callback function to handle changes in the selected date range.

Example usage:

FlutterFlowCalendar(
  color: Colors.blue,
  onChange: (DateTimeRange? selectedRange) {
    // Handle selected date range change
  },
  initialDate: DateTime.now(),
  weekFormat: true,
  weekStartsMonday: true,
  twoRowHeader: true,
  iconColor: Colors.white,
  dateStyle: TextStyle(fontSize: 16),
  dayOfWeekStyle: TextStyle(fontWeight: FontWeight.bold),
  inactiveDateStyle: TextStyle(color: Colors.grey),
  selectedDateStyle: TextStyle(color: Colors.red),
  titleStyle: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
  rowHeight: 40,
  locale: 'en_US',
)
Inheritance
Available extensions

Constructors

FlutterFlowCalendar.new({Key? key, required Color color, void onChange(DateTimeRange<DateTime>?)?, DateTime? initialDate, bool weekFormat = false, bool weekStartsMonday = false, bool twoRowHeader = false, Color? iconColor, TextStyle? dateStyle, TextStyle? dayOfWeekStyle, TextStyle? inactiveDateStyle, TextStyle? selectedDateStyle, TextStyle? titleStyle, double? rowHeight, String? locale})
Creates a new instance of FlutterFlowCalendar.
const

Properties

color Color
The color of the calendar.
final
dateStyle TextStyle?
The text style for the dates displayed on the calendar.
final
dayOfWeekStyle TextStyle?
The text style for the day of the week displayed on the calendar.
final
hashCode int
The hash code for this object.
no setterinherited
iconColor Color?
The color of the icons in the calendar.
final
inactiveDateStyle TextStyle?
The text style for the inactive dates on the calendar.
final
initialDate DateTime?
The initial date to be displayed on the calendar.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
locale String?
The locale to be used for formatting dates.
final
onChange → void Function(DateTimeRange<DateTime>?)?
A callback function that is called when the selected date range changes.
final
rowHeight double?
The height of each row in the calendar.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedDateStyle TextStyle?
The text style for the selected dates on the calendar.
final
titleStyle TextStyle?
The text style for the title of the calendar.
final
twoRowHeader bool
Determines whether the header should have two rows.
final
weekFormat bool
Determines whether the calendar should be displayed in week format.
final
weekStartsMonday bool
Determines whether the week starts on Monday.
final

Methods

animateOnActionTrigger(AnimationInfo animationInfo, {List<Effect>? effects, bool hasBeenTriggered = false}) Widget

Available on Widget, provided by the AnimatedWidgetExtension extension

animateOnPageLoad(AnimationInfo animationInfo, {List<Effect>? effects}) Widget

Available on Widget, provided by the AnimatedWidgetExtension extension

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<FlutterFlowCalendar>
Creates the mutable state for this widget at a given location in the tree.
override
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