{"id":25363577,"url":"https://github.com/tcd93/flutter-device-calendar-list","last_synced_at":"2026-05-10T16:34:18.878Z","repository":{"id":137012114,"uuid":"253262763","full_name":"tcd93/flutter-device-calendar-list","owner":"tcd93","description":"Example codes (with additional features) of Flutter *device calendar plugin*, allow interacting with the device's calendar","archived":false,"fork":false,"pushed_at":"2020-04-10T03:13:22.000Z","size":91,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T04:20:13.396Z","etag":null,"topics":["calendar","calendar-events","calendar-service","calendar-widget","device","flutter","flutter-examples"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tcd93.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-05T15:07:52.000Z","updated_at":"2020-12-28T18:17:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"d8defc15-f131-43ed-9a3d-4254ffba2ecc","html_url":"https://github.com/tcd93/flutter-device-calendar-list","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tcd93/flutter-device-calendar-list","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcd93%2Fflutter-device-calendar-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcd93%2Fflutter-device-calendar-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcd93%2Fflutter-device-calendar-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcd93%2Fflutter-device-calendar-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tcd93","download_url":"https://codeload.github.com/tcd93/flutter-device-calendar-list/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcd93%2Fflutter-device-calendar-list/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267276979,"owners_count":24063220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["calendar","calendar-events","calendar-service","calendar-widget","device","flutter","flutter-examples"],"created_at":"2025-02-14T22:35:12.426Z","updated_at":"2026-05-10T16:34:13.823Z","avatar_url":"https://github.com/tcd93.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"_Example codes (with additional features) of Flutter **[device calendar plugin](https://pub.dev/packages/device_calendar)**, display a list of events \u0026 allow interacting with the device's calendar_   \n  ![add](https://media.giphy.com/media/UrKU7XuV6NymIB30TU/giphy.gif)\n  ![delete](https://media.giphy.com/media/dWCih91YmemwIQkLVk/giphy.gif)\n\n#### Architecture\nState management: Mimic *Scoped Model* using *Provider*   \nData model: `CustomEvent`\n![img](https://i.imgur.com/IHIFuca.png)\n\n#### Extra contents:\n- Scroll to nearest-to-date event on arrow button press\n- Event item animations (slide / press trash bin to delete event)   \n_note: create/edit events with recurrence rule is not stable_\n\n#### Best practices:\n* _`FutureBuilder` is only used for building Widgets with __3__ states only: __initial -\u003e processing -\u003e done__._ It can not rebuild itself after that (unless you're _overwriting_ the _future_ instance, or calling a async method in the _future_ param, but those are bad practices) If you want to do more with the snapshot data later, like deleting/modifying it \u0026 update UI, use `Builder`, `StreamBuilder` or `ValueListenableBuilder` instead.\n* _Make state management as consistent as possible_, either by using a state management tool (like `Provider`, `InheritedWidget`, `Scoped Model`...) or just passing state data via _constructor_, don't create a mixed mess of both.\n  - Note: Passing state objects through the widget tree is _not recommended_ by many as this is extremely non-scalable as the app grows bigger.\n* _Don't abuse callbacks_, as the above note mentioned, you may never know if you suddenly need to wrap your widget by another widget (and Flutter is infamous for that), implement some kind of _event notifier/listener_ or use `ValueNotifier` class.\n* _Dispose AnimationControllers immediately when they are not needed anymore_, it may cause conflicts with otherwise, even when you dispose them in Widget life cycle's `dispose()` method.\n* *Operator overloading*: now this is a pretty grey area, use it with _immutable \u0026 unique object only!_\n* _Always break down big widget into many smaller ones, don't use function for that._ Creating many scoped _context_ is good, it won't rebuild the entire tree when the something is modified.\n* _Push `Provider.of` as far as possible down the widget tree_, so that the bigger ones (usually on the above) won't get rebuilt to often.\n* _Remember to utilize `listen: false` in `Provider.of`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcd93%2Fflutter-device-calendar-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftcd93%2Fflutter-device-calendar-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcd93%2Fflutter-device-calendar-list/lists"}