CustomDatePicker class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CustomDatePicker
Constructors
-
CustomDatePicker({Key? key, DateTime? currentMonth, dynamic onFetchPrices(DateTime)?, DateTime? initialDate, DateTime? lastDate, List<
String> ? prices, required dynamic onDateSelected(DateTime?), PickerMode datePickerMode = PickerMode.single, PickerType datePickerType = PickerType.jalali, bool fixedMode = true, (DateTime?, DateTime?)? rangeDates, dynamic onRangeDateSelected(DateTime?, DateTime?)?, dynamic onChangePickerMode(PickerMode)?, dynamic onClearEndDate()?, DayItemSection? currentDayItem, DayItemSection? selectedDayItem, DayItemSection? notSelectedDayItem, DayItemSection? disabledDayItem, Color? selectedDayColor, Color? defaultDayColor, Color? currentDayColor, Color? disabledDytColor, Color? selectedDayBorderColor, Color? defaultDayBorderColor, Color? textColor, Color? disabledTextColor, Color? primaryColor, Color? primaryContainerColor, Color? betweenRangeColor, bool needToShowSelectedDaysBox = true, bool needToShowChangeCalenderMode = true, bool needToShowTodayButton = true, CalenderType calenderType = CalenderType.simple}) -
const
Properties
- betweenRangeColor → Color?
-
final
- calenderType → CalenderType
-
calender type
simple -> Cupertino style calender
complex -> Material style calender with month and year picker, price showing ability and so on
final
- currentDayColor → Color?
-
final
- currentDayItem → DayItemSection?
-
custom day item
final
- currentMonth → DateTime?
-
final
- datePickerMode → PickerMode
-
Modes can be one of the following
single -> User can only select one and only one day
range -> User can select range of days
modes can be interchangeable during run time with 'fixedMode = true' or not with 'fixedMode = false'
final
- datePickerType → PickerType
-
final
- defaultDayBorderColor → Color?
-
final
- defaultDayColor → Color?
-
final
- disabledDayItem → DayItemSection?
-
final
- disabledDytColor → Color?
-
final
- disabledTextColor → Color?
-
final
- fixedMode → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialDate → DateTime?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- lastDate → DateTime?
-
final
- needToShowChangeCalenderMode → bool
-
final
- needToShowSelectedDaysBox → bool
-
conditional booleans
final
- needToShowTodayButton → bool
-
final
- notSelectedDayItem → DayItemSection?
-
final
- onChangePickerMode → dynamic Function(PickerMode)?
-
if modes changes during run time 'onChangePickerMode' function will be called
final
- onClearEndDate → dynamic Function()?
-
final
- onDateSelected → dynamic Function(DateTime?)
-
single mode variables
final
- onFetchPrices → dynamic Function(DateTime)?
-
final
- onRangeDateSelected → dynamic Function(DateTime?, DateTime?)?
-
range mode variables
final
-
prices
→ List<
String> ? -
final
- primaryColor → Color?
-
final
- primaryContainerColor → Color?
-
final
- rangeDates → (DateTime?, DateTime?)?
-
For single mode you have to set rangeDates to (SelectedDate, null)
For range mode you have to set rangeDates to (SelectedStartDate, SelectedEndDate)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedDayBorderColor → Color?
-
final
- selectedDayColor → Color?
-
custom theme
final
- selectedDayItem → DayItemSection?
-
final
- textColor → Color?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< CustomDatePicker> -
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