{"id":16216751,"url":"https://github.com/skyost/flutterweekview","last_synced_at":"2025-05-16T03:03:58.288Z","repository":{"id":41986842,"uuid":"233694190","full_name":"Skyost/FlutterWeekView","owner":"Skyost","description":"Displays a highly customizable week view (or day view) which is able to display events, to be scrolled, to be zoomed-in \u0026 out and a lot more !","archived":false,"fork":false,"pushed_at":"2025-02-18T10:20:55.000Z","size":10559,"stargazers_count":211,"open_issues_count":11,"forks_count":89,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-16T03:03:52.179Z","etag":null,"topics":["calendar","calendar-view","day","day-view","flutter","package","view","week","week-view","widget"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flutter_week_view","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/Skyost.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"Skyost","patreon":null,"open_collective":null,"ko_fi":"Skyost","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["paypal.me/Skyost","www.clipeee.com/creator/skyost","utip.io/skyost"]}},"created_at":"2020-01-13T21:09:48.000Z","updated_at":"2025-04-27T07:23:18.000Z","dependencies_parsed_at":"2024-06-19T23:01:50.257Z","dependency_job_id":"5e8677e3-db37-4557-835b-1ead943dd4c5","html_url":"https://github.com/Skyost/FlutterWeekView","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skyost%2FFlutterWeekView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skyost%2FFlutterWeekView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skyost%2FFlutterWeekView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Skyost%2FFlutterWeekView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Skyost","download_url":"https://codeload.github.com/Skyost/FlutterWeekView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459084,"owners_count":22074604,"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":["calendar","calendar-view","day","day-view","flutter","package","view","week","week-view","widget"],"created_at":"2024-10-10T11:22:05.925Z","updated_at":"2025-05-16T03:03:53.273Z","avatar_url":"https://github.com/Skyost.png","language":"Dart","funding_links":["https://github.com/sponsors/Skyost","https://ko-fi.com/Skyost","paypal.me/Skyost","www.clipeee.com/creator/skyost","utip.io/skyost","https://paypal.me/Skyost"],"categories":[],"sub_categories":[],"readme":"# Flutter Week View\n\n[![Likes](https://img.shields.io/pub/likes/flutter_week_view)](https://pub.dev/packages/flutter_week_view/score)\n[![Popularity](https://img.shields.io/pub/popularity/flutter_week_view)](https://pub.dev/packages/flutter_week_view/score)\n[![Pub points](https://img.shields.io/pub/points/flutter_week_view)](https://pub.dev/packages/flutter_week_view/score)\n\nDisplays a highly customizable week view (or day view) which is able to display events, to be scrolled, to be zoomed-in \u0026 out and a lot more !\n\nFlutter Week View is highly inspired by [Android Week View](https://github.com/thellmund/Android-Week-View).\n\n## Getting Started\n\nGetting started with Flutter Week View is very straight forward.\nYou have the choice between two widgets : `DayView` and `WeekView`.\nUse the first one to display a single day and use the second one to display\nmultiple days. \n\n## Example\n\nIf you want a \u003cq\u003ereal project\u003c/q\u003e example, you can check [this one](https://github.com/Skyost/FlutterWeekView/tree/master/example) on Github.\n\n### Day View\n\nSnippet :\n\n```dart\n// Let's get two dates :\nDateTime now = DateTime.now();\nDateTime date = DateTime(now.year, now.month, now.day);\n\n// And here's our widget !\nreturn DayView(\n  date: now,\n  events: [\n    FlutterWeekViewEvent(\n      title: 'An event 1',\n      description: 'A description 1',\n      start: date.subtract(Duration(hours: 1)),\n      end: date.add(Duration(hours: 18, minutes: 30)),\n    ),\n    FlutterWeekViewEvent(\n      title: 'An event 2',\n      description: 'A description 2',\n      start: date.add(Duration(hours: 19)),\n      end: date.add(Duration(hours: 22)),\n    ),\n    FlutterWeekViewEvent(\n      title: 'An event 3',\n      description: 'A description 3',\n      start: date.add(Duration(hours: 23, minutes: 30)),\n      end: date.add(Duration(hours: 25, minutes: 30)),\n    ),\n    FlutterWeekViewEvent(\n      title: 'An event 4',\n      description: 'A description 4',\n      start: date.add(Duration(hours: 20)),\n      end: date.add(Duration(hours: 21)),\n    ),\n    FlutterWeekViewEvent(\n      title: 'An event 5',\n      description: 'A description 5',\n      start: date.add(Duration(hours: 20)),\n      end: date.add(Duration(hours: 21)),\n    ),\n  ],\n  style: const DayViewStyle.fromDate(\n    date: now,\n    currentTimeCircleColor: Colors.pink,\n  ),\n);\n```\n\nResult :\n\n\u003cimg src=\"https://github.com/Skyost/FlutterWeekView/raw/master/screenshots/day_view.png\" height=\"500\"\u003e\n\n### Week view\n\nSnippet :\n\n```dart\n// Let's get two dates :\nDateTime now = DateTime.now();\nDateTime date = DateTime(now.year, now.month, now.day);\n\n// And here's our widget !\nreturn WeekView(\n  dates: [date.subtract(Duration(days: 1)), date, date.add(Duration(days: 1))],\n  events: [\n    FlutterWeekViewEvent(\n      title: 'An event 1',\n      description: 'A description 1',\n      start: date.subtract(Duration(hours: 1)),\n      end: date.add(Duration(hours: 18, minutes: 30)),\n    ),\n    FlutterWeekViewEvent(\n      title: 'An event 2',\n      description: 'A description 2',\n      start: date.add(Duration(hours: 19)),\n      end: date.add(Duration(hours: 22)),\n    ),\n    FlutterWeekViewEvent(\n      title: 'An event 3',\n      description: 'A description 3',\n      start: date.add(Duration(hours: 23, minutes: 30)),\n      end: date.add(Duration(hours: 25, minutes: 30)),\n    ),\n    FlutterWeekViewEvent(\n      title: 'An event 4',\n      description: 'A description 4',\n      start: date.add(Duration(hours: 20)),\n      end: date.add(Duration(hours: 21)),\n    ),\n    FlutterWeekViewEvent(\n      title: 'An event 5',\n      description: 'A description 5',\n      start: date.add(Duration(hours: 20)),\n      end: date.add(Duration(hours: 21)),\n    ),\n  ],\n);\n```\n\nResult :\n\n\u003cimg src=\"https://github.com/Skyost/FlutterWeekView/raw/master/screenshots/week_view.gif\" height=\"500\"\u003e\n\n## Options\n\n### Common options\n\nHere are the options that are available for both `DayView` and `WeekView` :\n\n* `events` Events to display.\n* `style` Allows you to style your widget. A lot of different styles are available so don't hesitate to try them out !\n* `hourColumnStyle` Same, it allows you to style the hour column on the left.\n* `controller` Controllers allow you to manually change the zoom settings.\n* `inScrollableWidget` Whether to put the widget in a scrollable widget (disable if you want to manage the scroll by yourself).\n* `minimumTime` The minimum hour and minute to display in a day.\n* `maximumTime` The maximum hour and minute to display in a day.\n* `initialTime` The initial hour and minute to put the widget on.\n* `userZoomable` Whether the user is able to (un)zoom the widget.\n* `currentTimeIndicatorBuilder` Allows you to change the default current time indicator (rule and circle).\n* `onHourColumnTappedDown` Provides a tapped down callback for the hour column. Pretty useful if you want your users to add your own events at a specific time.\n* `onBackgroundTappedDown` Provides a similar callback as the above, but when the user clicks on the background (an empty region of the calendar).\n* `onDayBarTappedDown` Provides a tapped down callback for the day bar.\n* `dragAndDropOptions` Enables drag-and-drop of events.\n* `resizeEventOptions` Enables resizing events, by dragging the bottom of the event up/down.\n* `eventWidgetBuilder` The widget builder that customizes how events are rendered.\n\n### Flutter day view\n\nHere are the specific options of `DayView` :\n\n* `date` The widget date.\n* `dayBarStyle` The day bar style.\n\n### Flutter week view\n\nHere are the specific options of `WeekView` :\n\n* `dates` The widget dates.\n* `dayViewStyleBuilder` The function that allows to build a Day View style according to the provided date.\n* `dayBarStyleBuilder` The function that allows to build a Day Bar style according to the provided date.\n\nPlease note that you can create a `WeekView` instance using a builder.\nAll previous options are still available but you don't need to provide the `dates` list.\nHowever, you need to provide a `DateCreator` (and a date count if you can, if it's impossible for you to do it then `scrollToCurrentTime` will not scroll to the current date).\n\n## Contributions\n\nYou have a lot of options to contribute to this project ! You can :\n\n* [Fork it](https://github.com/Skyost/FlutterWeekView/fork) on Github.\n* [Submit](https://github.com/Skyost/FlutterWeekView/issues/new/choose) a feature request or a bug report.\n* [Donate](https://paypal.me/Skyost) to the developer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyost%2Fflutterweekview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyost%2Fflutterweekview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyost%2Fflutterweekview/lists"}