{"id":13573439,"url":"https://github.com/pinkfish/flutter_calendar","last_synced_at":"2026-02-20T20:35:00.025Z","repository":{"id":41413176,"uuid":"135485738","full_name":"pinkfish/flutter_calendar","owner":"pinkfish","description":"Calendar widget for flutter","archived":false,"fork":false,"pushed_at":"2021-10-18T18:13:24.000Z","size":14924,"stargazers_count":243,"open_issues_count":15,"forks_count":40,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-10-22T23:45:15.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pinkfish.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-30T19:01:46.000Z","updated_at":"2025-05-27T12:43:43.000Z","dependencies_parsed_at":"2022-09-13T08:42:17.053Z","dependency_job_id":null,"html_url":"https://github.com/pinkfish/flutter_calendar","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/pinkfish/flutter_calendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinkfish%2Fflutter_calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinkfish%2Fflutter_calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinkfish%2Fflutter_calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinkfish%2Fflutter_calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pinkfish","download_url":"https://codeload.github.com/pinkfish/flutter_calendar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinkfish%2Fflutter_calendar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29663475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T19:49:36.704Z","status":"ssl_error","status_checked_at":"2026-02-20T19:44:05.372Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T15:00:35.469Z","updated_at":"2026-02-20T20:34:59.990Z","avatar_url":"https://github.com/pinkfish.png","language":"Dart","readme":"# Calendar\n\nShows a scrolling calendar list of events.  This is still relatively basic, it always\nassumes that the getEvents returns the entire list of calendar events (mostly ignoring\nthe values passed into the source).  It does work however :)  Optionally, you can use an\nimage as a background for the calendar header and another image for the month header.\n\n\nThe calendar uses slivers to display the widgets in the view and lets you scroll forward\nand backward through the events.  The header widget will drop down and open up the days of\nthe month, letting you select specific days as well as move back and forth between the months.\nBy default it displays a list of events and not a day view, the day view code is all just a\nstub right now.\n\nHere is how to use the calendar widget itself:\n\n```\nnew CalendarWidget(\n              initialDate: new TZDateTime.now(local),\n              buildItem: buildItem,\n              getEvents: getEvents,\n            );\n```\n\nHow to setup a source for the calendar widget.\n```\n...\n  List\u003cGame\u003e _listToShow;\n  StreamSubscription\u003cUpdateReason\u003e _listening;\n\n  @override\n  Widget buildItem(BuildContext context, CalendarEvent event) {\n    return new GameCard(_listToShow[event.index]);\n  }\n\n  @override\n  List\u003cCalendarEvent\u003e getEvents(DateTime start, DateTime end) {\n    if (_listToShow == null) {\n      _listToShow = UserDatabaseData.instance.games.values.toList();\n    }\n    if (_listToShow == null) {\n      return [];\n    }\n    List\u003cCalendarEvent\u003e events = new List\u003cCalendarEvent\u003e();\n    int pos = 0;\n    _listToShow.forEach((Game g) =\u003e events.add(new CalendarEvent(\n        instant: g.tzTime, instantEnd: g.tzEndTime, index: pos++)));\n    return events;\n  }\n...\n```\n\nExample of the calendar widget in action:\n\u003cimg src=\"https://github.com/pinkfish/flutter_calendar/blob/master/screenshots/screenrecording.gif?raw=true\"\u003e\n\n## Getting Started\n\nFor help getting started with Flutter, view our online [documentation](https://flutter.io/).\n\nFor help on editing package code, view the [documentation](https://flutter.io/developing-packages/).\n","funding_links":[],"categories":["组件","Components","UI [🔝](#readme)"],"sub_categories":["UI"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinkfish%2Fflutter_calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinkfish%2Fflutter_calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinkfish%2Fflutter_calendar/lists"}