table_calendar 1.0.2

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 91

Table Calendar #

Pub Package Awesome Flutter

Highly customizable, feature-packed Flutter Calendar with gestures, animations and multiple formats.

ImageImage
Table Calendar with custom stylesTable Calendar with Builders

Features #

  • Extensive, yet easy to use API
  • Custom Builders for true UI control
  • Vertical autosizing
  • Beautiful animations
  • Gesture handling
  • Multiple Calendar formats
  • Multiple days of the week formats
  • Nice, configurable UI out of the box

Usage #

Make sure to check out example project.

For more info please refer to API docs.

Installation #

Add to pubspec.yaml:

dependencies:
  table_calendar: ^1.0.2

[1.0.2]

  • FormatButton text can now be customized

[1.0.1]

  • Fixed CalendarFormat issue when not using a callback

[1.0.0]

  • Added custom Builders API
  • Added DateTime truncation logic
  • onDaySelected callback now contains list of events associated with that day
  • Added onVisibleDaysChanged callback
  • SwipeConfig can now be customized
  • Days outside of current month can be shown/hidden
  • Refactored code
  • Updated example project

[0.3.2]

  • Added SwipeToExpand for CalendarFormat
  • AvailableGestures can now be specified (none, horizontalSwipe, verticalSwipe, all)
  • Fixed styling issue with SelectedDay on weekends

[0.3.1]

  • Added slide animation for CalendarFormat
  • CalendarFormat animation can now be specified (slide, scale)
  • Added Monday-Sunday week format
  • Week format can now be specified with StartingDayOfWeek enum

[0.3.0]

  • Any style can now be customized
  • Grouped properties into Classes
  • Refactored code for better readability
  • Added full documentation

[0.2.2]

  • Added optional initial Date (defaults to DateTime.now())

[0.2.1]

  • Added animated Swipe gesture
  • CalendarFormat can now be enforced programmatically

[0.2.0]

  • Added animations to CalendarFormat change
  • Added animations to Date selection
  • Added new CalendarFormat - TwoWeeks
  • Available CalendarFormats can now be specified

[0.1.4]

  • Refactored code
  • Updated example project

[0.1.3]

  • Added chevron button customization
  • Calendar header can be hidden now

[0.1.2]

  • Added OnFormatChanged callback

[0.1.1]

  • Added CalendarFormat button customization

[0.1.0]

  • Added CalendarFormat button - toggle between month view and week view
  • Additional customization is now available

[0.0.2]

  • Revamped example
  • Improved description

[0.0.1] - Initial release

  • Fully working TableCalendar; example included

example/README.md

Table Calendar example #

Demonstrates how to use table_calendar package. Displays TableCalendar widget with a ListView underneath it.

ImageImage
Table Calendar with custom stylesTable Calendar with Builders

TableCalendar offers a lot of customization:

  • by using custom Styles
  • by using custom Builders (accompanied by custom Styles)

Using just Styles is a great way to get nice results with little effort. That being said, using Builders will give you full control over Calendar's UI.

This example project will show you both of aforementioned methods.

For more info please refer to API docs.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  table_calendar: ^1.0.2

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:table_calendar/table_calendar.dart';
  
Version Uploaded Documentation Archive
1.0.2 Mar 22, 2019 Go to the documentation of table_calendar 1.0.2 Download table_calendar 1.0.2 archive
1.0.1 Mar 21, 2019 Go to the documentation of table_calendar 1.0.1 Download table_calendar 1.0.1 archive
1.0.0 Mar 21, 2019 Go to the documentation of table_calendar 1.0.0 Download table_calendar 1.0.0 archive
0.3.2 Mar 16, 2019 Go to the documentation of table_calendar 0.3.2 Download table_calendar 0.3.2 archive
0.3.1 Mar 15, 2019 Go to the documentation of table_calendar 0.3.1 Download table_calendar 0.3.1 archive
0.3.0 Mar 14, 2019 Go to the documentation of table_calendar 0.3.0 Download table_calendar 0.3.0 archive
0.2.2 Mar 12, 2019 Go to the documentation of table_calendar 0.2.2 Download table_calendar 0.2.2 archive
0.2.1 Mar 9, 2019 Go to the documentation of table_calendar 0.2.1 Download table_calendar 0.2.1 archive
0.2.0 Mar 6, 2019 Go to the documentation of table_calendar 0.2.0 Download table_calendar 0.2.0 archive
0.1.4 Mar 4, 2019 Go to the documentation of table_calendar 0.1.4 Download table_calendar 0.1.4 archive

All 16 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
83
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
91
Learn more about scoring.

We analyzed this package on Mar 24, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.3.3

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/src/customization/calendar_builders.dart.

Run flutter format to format lib/src/customization/calendar_builders.dart.

Format lib/src/customization/calendar_style.dart.

Run flutter format to format lib/src/customization/calendar_style.dart.

Format lib/src/customization/days_of_week_style.dart.

Run flutter format to format lib/src/customization/days_of_week_style.dart.

Fix additional 3 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/customization/header_style.dart (Run flutter format to format lib/src/customization/header_style.dart.)
  • lib/src/logic/calendar_logic.dart (Run flutter format to format lib/src/logic/calendar_logic.dart.)
  • lib/table_calendar.dart (Run flutter format to format lib/table_calendar.dart.)

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
collection ^1.14.11 1.14.11
date_utils ^0.1.0+2 0.1.0+2
flutter 0.0.0
intl ^0.15.7 0.15.8
simple_gesture_detector ^0.1.0 0.1.1
Transitive dependencies
meta 1.1.6 1.1.7
path 1.6.2
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test