{"id":28638887,"url":"https://github.com/agryva/some-calendar","last_synced_at":"2025-10-08T05:10:09.614Z","repository":{"id":48429134,"uuid":"243172692","full_name":"agryva/Some-Calendar","owner":"agryva","description":"Custom calendar dialog widget for flutter with (multi select, single select, date range) mode","archived":false,"fork":false,"pushed_at":"2022-12-07T03:26:58.000Z","size":14015,"stargazers_count":66,"open_issues_count":7,"forks_count":32,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-12T19:09:05.675Z","etag":null,"topics":["android","calendar","custom-calendar","flutter","flutter-plugin","flutter-ui"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agryva.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-26T05:00:21.000Z","updated_at":"2025-03-05T00:35:49.000Z","dependencies_parsed_at":"2023-01-23T15:00:20.978Z","dependency_job_id":null,"html_url":"https://github.com/agryva/Some-Calendar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/agryva/Some-Calendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agryva%2FSome-Calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agryva%2FSome-Calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agryva%2FSome-Calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agryva%2FSome-Calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agryva","download_url":"https://codeload.github.com/agryva/Some-Calendar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agryva%2FSome-Calendar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259519873,"owners_count":22870374,"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","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":["android","calendar","custom-calendar","flutter","flutter-plugin","flutter-ui"],"created_at":"2025-06-12T19:09:05.753Z","updated_at":"2025-10-08T05:10:04.565Z","avatar_url":"https://github.com/agryva.png","language":"Dart","funding_links":["https://www.buymeacoffee.com/agryva","https://paypal.me/agryva"],"categories":[],"sub_categories":[],"readme":"# some calendar\n[![pub package](https://img.shields.io/pub/v/some_calendar.svg)](https://pub.dev/packages/some_calendar#-readme-tab-)\n![License](https://img.shields.io/badge/license-MIT-blue.svg)\n[![support](https://img.shields.io/badge/platform-flutter%7Cflutter%20web-ff69b4.svg?style=flat-square)](https://github.com/agryva/Some-Calendar)\n\n\u003ca href=\"https://github.com/Solido/awesome-flutter\"\u003e\n   \u003cimg alt=\"Awesome Flutter\" src=\"https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true\u0026style=flat-square\" /\u003e\n\u003c/a\u003e\n\nCustom calendar with Multi-select \u0026 range configurable calendar\n\n## New Features\n+ Added View Mode Somecalendar #15\n\n\n## Help Maintenance\nI've taken the time to make this library, help support to develop it or buy me coffee and snacks to be even more enthusiastic\n\u003cbr/\u003e\n\u003ca href=\"https://www.buymeacoffee.com/agryva\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/purple_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\" \u003e\u003c/a\u003e\n[![Paypal](https://www.paypalobjects.com/webstatic/mktg/Logo/pp-logo-100px.png)](https://paypal.me/agryva)\n\n## \u003ca name=\"#gifDialog\"\u003e\u003c/a\u003eGif Somecalendar (Dialog)\n\n| \u003cimg src=\"https://raw.githubusercontent.com/agryva/Some-Calendar/master/screen/multi.gif\" width=\"379px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMulti\u003c/b\u003e\u003c/sub\u003e | \u003cimg src=\"https://raw.githubusercontent.com/agryva/Some-Calendar/master/screen/range.gif\" width=\"379px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eRange\u003c/b\u003e\u003c/sub\u003e | \u003cimg src=\"https://raw.githubusercontent.com/agryva/Some-Calendar/master/screen/single.gif\" width=\"379px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eSingle\u003c/b\u003e\u003c/sub\u003e |\n| :---: | :---: | :---: |\n\n\n## \u003ca name=\"#getting-started\"\u003e\u003c/a\u003eRequirements to run the demo ##\n\n### Setup\nAdd dependency to your pubspec.yaml:\n\n```dart\nsome_calendar: ^{latest_version}\n```\n\n### Basic use\nFirst, add an import to your code:\n```dart\nimport 'package:some_calendar/some_calendar.dart';\n```\n\n### Setting Locale\nFirst, add an import to your code:\n```dart\nimport 'package:intl/intl.dart';\nimport 'package:intl/date_symbol_data_local.dart';\n\n  @override\n  void initState() {\n    initializeDateFormatting();\n    Intl.systemLocale = 'en_En'; // to change the calendar format based on localization\n    super.initState();\n  }\n\n```\n\n### with dialog\nSingle Mode, add to your code:\n```dart\n    showDialog(\n        context: context,\n        builder: (_) =\u003e SomeCalendar(\n          mode: SomeMode.Single,\n          isWithoutDialog: false,\n          selectedDate: selectedDate,\n          labels: new Labels(\n              dialogDone: 'Selesai',\n              dialogCancel: 'Batal',\n              dialogRangeFirstDate: 'Tanggal Pertama',\n              dialogRangeLastDate: 'Tanggal Terakhir',\n          ),\n          startDate: Jiffy().subtract(years: 3),\n          lastDate: Jiffy().add(months: 9),\n          done: (date) {\n            setState(() {\n              selectedDate = date;\n              showSnackbar(selectedDate.toString());\n            });\n          },\n        ));\n```\n\nMulti Mode, add to your code:\n```dart\n    showDialog(\n        context: context,\n        builder: (_) =\u003e SomeCalendar(\n          mode: SomeMode.Multi,\n          startDate: Jiffy().subtract(years: 3),\n          lastDate: Jiffy().add(months: 9),\n          isWithoutDialog: false,\n          selectedDates: selectedDates,\n          viewMode: ViewMode.Edit,\n          done: (date) {\n            setState(() {\n              selectedDates = date;\n              showSnackbar(selectedDates.toString());\n            });\n          },\n        ));\n```\n\nRange Mode, add to your code:\n```dart\n    showDialog(\n        context: context,\n        builder: (_) =\u003e SomeCalendar(\n          mode: SomeMode.Range,\n          startDate: Jiffy().subtract(years: 3),\n          lastDate: Jiffy().add(months: 9),\n          selectedDates: selectedDates,\n          isWithoutDialog: false,\n          viewMode: ViewMode.Edit,\n          primaryColor: Colors.red,\n          done: (date) {\n            setState(() {\n              selectedDates = date;\n              showSnackbar(selectedDates.toString());\n            });\n          },\n        ));\n```\n\n## SomeMode\n| SomeMode |\n| :---------------------- |\n| Range\n| Single\n| Multi\n\n## Parameters\n| parameter                   | types           | defaultValues                                                                                                     |\n| :---------------------- | :-------------: | :---------------------------------------------------------------------------------------------------------------: |\n| primaryColor        | `color`        | Color(0xff365535) |\n| textColor        | `color`        | Colors.black |\n| selectedDate       | `Date`     | Date.now() |\n| selectedDates| `Date[]`     | Date.now() + 4 days|\n| isWithoutDialog| `bool`     | true|\n| scrollDirection| `Axis`     | Axis.vertical|\n| startDate| `Date`     | |\n| lastDate| `Date`     | |\n| mode| `SomeMode`     |  |\n| viewMode| `ViewMode`     | ViewMode.Edit |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagryva%2Fsome-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagryva%2Fsome-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagryva%2Fsome-calendar/lists"}