v1.4.2weekly_date_picker
一个每周日期选择器,您可以在周之间滚动并选择日期。
87喜欢 343近 30 天下载160Pub 分数
AndroidiOSWebmacOSWindowsLinux
一个可滚动切换周的星期选择器。
{"sdk":"flutter"}^2.0.0^1.1.0{"sdk":"flutter"}以下为英文项目原文快照,最新内容请访问 GitHub。
A weekday picker where you can scroll between weeks.
https://raw.githubusercontent.com/Magnuti/Weekly-Date-Picker/main/assets/white_with_week.gifTo use this package, add weekly_date_picker as a dependency in your pubspec.yaml file.
WeeklyDatePicker(
selectedDay: _selectedDay, // DateTime
changeDay: (value) => setState(() {
_selectedDay = value;
}),
),
You can use custom colors and labels by the optional parameters:
weekdayText Specifies the weekday text: default is 'Week'weekdays Specifies the weekday strings ['Mon', 'Tue'...]backgroundColor Background colorselectedDigitBackgroundColor Color of the selected day circleselectedDigitBorderColor Color of the border of the selected day circleselectedDigitColor Color of the selected digit textdigitsColor Color of the unselected digits textweekdayTextColor Is the color of the weekdays 'Mon', 'Tue'...enableWeeknumberText Set to false to hide the weeknumber textfield to the left of the sliderweeknumberColor Color of the weekday containerweeknumberTextColor Color of the weekday textdaysInWeek Specifies the number of weekdays to render, default is 7, so Monday to Sunday