v0.0.2+3calendar_agenda
具有多种可自定义样式的日历议程小部件,也可用作应用栏小部件。
57喜欢 34近 30 天下载130Pub 分数
AndroidiOSWebmacOSWindowsLinux
sud0su/calendar_agenda open-source repository details.
以下为英文项目原文快照,最新内容请访问 GitHub。
Calendar agenda widget with a lot of customizable styles.
dependencies:
flutter:
sdk: flutter
calendar_agenda: version
flutter pub get
import 'package:calendar_agenda/calendar_agenda.dart';
| SelectedDayPosition.center | SelectedDayPosition.Left | SelectedDayPosition.Right |
|---|---|---|
![]() |
![]() |
![]() |
| FullCalendarScroll.vertical | FullCalendarScroll.horizontal |
|---|---|
![]() |
![]() |
Use the CalendarAgenda Widget
CalendarAgenda(
initialDate: DateTime.now(),
firstDate: DateTime.now().subtract(Duration(days: 140)),
lastDate: DateTime.now().add(Duration(days: 4)),
onDateSelected: (date) {
print(date);
},
)
| Props | Types | Required | defaultValues |
|---|---|---|---|
| initialDate | DateTime | True | |
| firstDate | DateTime | True | |
| lastDate | DateTime | True | |
| onDateSelected | Funtion | False | |
| backgroundColor | Color? | False | |
| selectedDayLogo | ImageProvider<Object>? | False | |
| controller | CalendarAgendaController? | False | |
| selectedDateColor | Color? | False | Colors.black |
| dateColor | Color? | False | Colors.white |
| calendarBackground | Color? | False | Colors.white |
| calendarEventSelectedColor | Color? | False | Colors.white |
| calendarEventColor | Color? | False | Colors.blue |
| locale | String? | False | 'en' |
| leading | Widget? | False | |
| appbar | bool | False | False |
| events | List<DateTime>? | False | |
| fullCalendar | bool | False | True |
| fullCalendarScroll | FullCalendarScroll | False | FullCalendarScroll.vertical |
| fullCalendarDay | WeekDay | False | WeekDay.short |
| weekDay | WeekDay | False | WeekDay.short |
| selectedDayPosition | SelectedDayPosition | False | SelectedDayPosition.left |
Special thanks goes to all contributors to this package. Make sure to check them out.
You like the package ? Buy me a coffee :)
依赖清单 4 项
{"sdk":"flutter"}^0.18.0^0.3.2{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗