DateIndicator class

@param `indicatorWidth`: default to device width.

@param `indicatorHeight`: default to 68.0. If you are changing this below params also should change to stop layout becoming ugly.

@param `circleHolderWidth`: default to 45.0.

@param `circleHolderHeight`: default to 45.0.

@param `activeBubbleWidth`: default to 15.0.

@param `activeBubbleHeight`: default to 15.0.

@param `activeBubbleRightPosition`: default to 8.0, adjust the right position of the active bubble

@param `activeBubbleLeftPosition`: default to 20.0, adjust the left position of the active bubble

@param `activeBubbleBottomPosition`: default to 5.0, adjust the bottom position of the active bubble

@param `hideDayOfWeek`: default to false, on top of the circle holder three letters of the day of the week is displaying

@param `initialDay`: for to select specific day when this widget first display

@param `jumpToInitialDay`: set to true by default, this will scroll the day holder list view to initial day

@param `activeHolders`: default to empty list, that means no date holder shows active bubble. to show active bubbles provide day of month as a int List. Ex: If January [1,2,31], depending on the month end day have to be correct.

@param `onHolderTap`: is a function with an integer parameter to for you to access day selected value. (int i) => setState(() => yourVar = i),

@param `updateSelectedDay`: If not null, will change the holder selection to that day(should be between month days. Ex: 1-31).

Check this example: https://github.com/Blasanka/horizontal_indicator/blob/master/example/lib/main.dart

Inheritance

Constructors

DateIndicator({Color holderColor, Color activeBubbleColor, Color textColor, Color numberColor, Color selectedBorderColor, Color unSelectedBorderColor, Color indicatorShadowColor, Color indicatorColor, double indicatorWidth, double indicatorHeight: 68.0, double circleHolderWidth: 45.0, double circleHolderHeight: 45.0, double activeBubbleWidth: 15.0, double activeBubbleHeight: 15.0, double activeBubbleRightPosition: 8.0, double activeBubbleLeftPosition: 20.0, double activeBubbleBottomPosition: 5.0, bool hideDayOfWeek: false, int initialDay, bool jumpToInitialDay: true, List<int> activeHolders, ValueChanged<int> onHolderTap, int updateSelectedDay})
const

Properties

activeBubbleBottomPosition → double
final
activeBubbleColor Color
final
activeBubbleHeight → double
final
activeBubbleLeftPosition → double
final
activeBubbleRightPosition → double
final
activeBubbleWidth → double
final
activeHolders → List<int>
final
circleHolderHeight → double
final
circleHolderWidth → double
final
hideDayOfWeek → bool
final
holderColor Color
final
indicatorColor Color
final
indicatorHeight → double
final
indicatorShadowColor Color
final
indicatorWidth → double
final
initialDay → int
final
jumpToInitialDay → bool
final
numberColor Color
final
onHolderTap ValueChanged<int>
final
selectedBorderColor Color
final
textColor Color
final
unSelectedBorderColor Color
final
updateSelectedDay → int
final
hashCode → int
The hash code for this object.
read-only, inherited
key Key
Controls how one widget replaces another widget in the tree.
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createState() → _DateIndicatorState
Creates the mutable state for this widget at a given location in the tree. [...]
override
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.debug}) → String
Returns 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 ==(dynamic other) → bool
The equality operator.
inherited

Static Methods

of(BuildContext context) → _DateIndicatorInheritedWidget