SelectWeekDays class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SelectWeekDays
Constructors
-
SelectWeekDays({required Function onSelect, Color? backgroundColor, FontWeight? fontWeight, double? fontSize, Color? daysFillColor, Color? daysBorderColor, Color? selectedDayTextColor, Color? unSelectedDayTextColor, bool border = true, BoxDecoration? boxDecoration, double padding = 8.0, double? width, required List<
DayInWeek> days, Key? key}) -
SelectWeekDays
takes a list of days of typeDayInWeek
.onSelect
property will returnlist
of days that are selected.
Properties
- backgroundColor → Color?
-
backgroundColor - property to change the color of the container.
final
- border → bool
-
border Boolean to handle the day button border by default the border will be true.
final
- boxDecoration → BoxDecoration?
-
boxDecoration to handle the decoration of the container.
final
-
days
→ List<
DayInWeek> -
List of days of type
DayInWeek
final - daysBorderColor → Color?
-
daysBorderColor - property to change the border color of the rounded buttons.
final
- daysFillColor → Color?
-
daysFillColor - property to change the button color of days when the button is pressed.
final
- fontSize → double?
-
fontSize - property to change the size of selected text
final
- fontWeight → FontWeight?
-
fontWeight - property to change the weight of selected text
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onSelect → Function
-
onSelect callBack to handle the Selected days
final
- padding → double
-
padding property to handle the padding between the container and buttons by default it is 8.0
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedDayTextColor → Color?
-
selectedDayTextColor - property to change the color of text when the day is selected.
final
- unSelectedDayTextColor → Color?
-
unSelectedDayTextColor - property to change the text color when the day is not selected.
final
- width → double?
-
The property that can be used to specify the width of the SelectWeekDays container.
By default this property will take the full width of the screen.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → SelectWeekDaysState -
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