weekly_date_picker 1.1.1
weekly_date_picker: ^1.1.1 copied to clipboard
A weekly date picker where you can scroll between weeks and select a date.
Weekday Scroller #
A weekday picker where you can scroll between weeks.
Custom styling #
You can remove the week text #
Add custom colors #
You can also make only the weekdays selectable #
Installing #
To use this package, add weekly_date_picker as a dependency in your pubspec.yaml file.
Usage #
WeeklyDatePicker(
selectedDay: _selectedDay, // DateTime
changeDay: (value) => setState(() {
_selectedDay = value;
}),
),
How to use custom styling #
You can use custom colors and labels by the optional parameters:
weekdayTextSpecifies the weekday text: default is 'Week'weekdaysSpecifies the weekday strings ['Mon', 'Tue'...]backgroundColorBackground colorselectedBackgroundColorColor of the selected day circleselectedDigitColorColor of the selected digits textdigitsColorColor of the unselected digits textweekdayTextColorIs the color of the weekdays 'Mon', 'Tue'...enableWeeknumberTextSet to false to hide the weeknumber textfield to the left of the sliderweeknumberColorColor of the weekday containerweeknumberTextColorColor of the weekday textdaysInWeekSpecifies the number of weekdays to render, default is 7, so Monday to Sunday