CalendarWeek class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CalendarWeek
Constructors
-
CalendarWeek({Key? key, DateTime? maxDate, DateTime? minDate, double height = 100, Widget monthViewBuilder(DateTime)?, TextStyle dayOfWeekStyle = const TextStyle(color: Colors.blue, fontWeight: FontWeight.w600), FractionalOffset monthAlignment = FractionalOffset.center, TextStyle dateStyle = const TextStyle(color: Colors.blue, fontWeight: FontWeight.w400), TextStyle todayDateStyle = const TextStyle(color: Colors.orange, fontWeight: FontWeight.w400), Color todayBackgroundColor = Colors.black12, Color pressedDateBackgroundColor = Colors.blue, TextStyle pressedDateStyle = const TextStyle(color: Colors.white, fontWeight: FontWeight.w400), Color dateBackgroundColor = Colors.transparent, dynamic onDatePressed(DateTime)?, dynamic onDateLongPressed(DateTime)?, Color backgroundColor = Colors.white, List<
String> dayOfWeek = dayOfWeekDefault, List<String> month = monthDefaults, bool showMonth = true, List<int> weekendsIndexes = weekendsIndexesDefault, TextStyle weekendsStyle = const TextStyle(color: Colors.red, fontWeight: FontWeight.w600), EdgeInsets marginMonth = const EdgeInsets.symmetric(vertical: 4), EdgeInsets marginDayOfWeek = const EdgeInsets.symmetric(vertical: 4), BoxShape dayShapeBorder = BoxShape.circle, List<DecorationItem> decorations = const [], CalendarWeekController? controller, dynamic onWeekChanged()?}) -
factory
Properties
- backgroundColor → Color
-
Background color of calendar
final
- controller → CalendarWeekController?
-
Page controller
final
- dateBackgroundColor → Color
-
Background for dates
final
- datePressedBackgroundColor → Color
-
Specify background for date after pressed
final
- datePressedStyle → TextStyle
-
Specify a style for date after pressed
final
- dateStyle → TextStyle
-
Style of dates
final
- dayOfWeekStyle → TextStyle
-
Style of day of week
final
- dayShapeBorder → BoxShape
-
Shape of day
final
-
daysOfWeek
→ List<
String> -
List contain titles day of week
final
-
decorations
→ List<
DecorationItem> -
List of decorations
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
Height of calendar
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- marginDayOfWeek → EdgeInsets
-
Margin day of week row
final
- marginMonth → EdgeInsets
-
Margin month row
final
- maxDate → DateTime
-
Calendar end at maxDate
final
- minDate → DateTime
-
Calendar start from minDate
final
- monthAlignment → FractionalOffset
-
Alignment of day day of week
final
- monthDisplay → bool
-
Condition show month
final
-
months
→ List<
String> -
List contain title months
final
- monthViewBuilder → (Widget Function(DateTime)?)
-
Style of months
final
- onDateLongPressed → void Function(DateTime)
-
Callback
function for long press evenfinal - onDatePressed → void Function(DateTime)
-
Callback
function for press eventfinal - onWeekChanged → dynamic Function()
-
Callback
changed week eventfinal - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- todayBackgroundColor → Color
-
Specify a background for today
final
- todayDateStyle → TextStyle
-
Specify a style for today
final
-
weekendsIndexes
→ List<
int> -
List contain indexes of weekends from days titles list
final
- weekendsStyle → TextStyle
-
Style of weekends days
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _CalendarWeekState -
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}) → 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