small_calendar

small_calendar widget.

Usage

Add Dependency

dependencies:
    small_calendar: "^0.4.0"

Import It

import 'package:small_calendar/small_calendar.dart';

Use It

  1. Create new SmallCalendarData (this widget provides data to SmallCalendar-s down the widget tree)
  2. (Optionally) Create SmallCalendarStyle (to change the looks of SmallCalendar)
  3. Create SmallCalendarPager (to enable swiping between months)
  4. In pageBuilder of SmallCalendarPager create a new SmallCalendar

If you wish to display SmallCalendar for only one Month (without the ability to swipe between months), omit the SmallCalendarPager.

new SmallCalendarData(
  child: new SmallCalendarStyle(
    child: new SmallCalendarPager(
      pageBuilder: (BuildContext context, DateTime month) {
        return new SmallCalendar(
            month: month,
          );
        },
    ),
  ),
);

Styling

  • 1. - weekdayIndicationHeight
  • 2. - WeekdayIndicationStyleData/textStyle
  • 3. - WeekdayIndicationStyleData/backgroundColor
  • 4. - DayStyleData/extendedDayTextStyle
  • 5. - DayStyleData/dayTextStyle
  • 6. - tick
  • 7. - textTickSeparation
  • 8. - selectedColor
  • 9. - todayColor

Libraries

small_calendar
small_calendar_page
small_calendar_pager