calendarro

Creator: coderz1093

Last updated:

0 purchases

calendarro Image
calendarro Images

Languages

Categories

Add to Cart

Description:

calendarro

Calendarro #
Calendar widget library for Flutter apps.
Offers multiple ways to customize the widget.
Getting Started #
Installation #
Add dependency to your pubspec.yaml:
calendarro: ^1.2.0
copied to clipboard
Basic use #
First, add an import to your code:
import 'package:calendarro/calendarro.dart';
copied to clipboard
Add a widget to your code:
Calendarro(
startDate: DateUtils.getFirstDayOfCurrentMonth(),
endDate: DateUtils.getLastDayOfCurrentMonth()
)
copied to clipboard

Customization #

1. Display Mode - If you prefer to operate on multiple rows to see whole month, use:
Calendarro(
displayMode: DisplayMode.MONTHS,
...
)
copied to clipboard
2. Selection Mode - If you want to select multiple dates, use:
Calendarro(
selectionMode: SelectionMode.MULTI,
...
)
copied to clipboard
3. Weekday Labels - If you want to provide your own row widget for displaying weekday names, use:
Calendarro(
weekdayLabelsRow: CustomWeekdayLabelsRow()
...
)
copied to clipboard
you can create your CustomWeekdayLabelsRow by looking at default CalendarroWeekdayLabelsView.
4. Day Tile Builder - If you want to build day tiles your own way, you can use:
Calendarro(
dayTileBuilder: CustomDayTileBuilder()
...
)
copied to clipboard
you can create your CustomDayTileBuilder looking upon DefaultDayTileBuilder.
5. Initial selected dates - When you want some dates to be selected from the scratch, use selectedDate (SelectionMode.SINGLE) or selectedDates (SelectionMode.MULTI) arguments:
Calendarro(
selectedDate: DateTime(2018, 8, 1)
//or
selectedDates: [DateTime(2018, 8, 1), DateTime(2018, 8, 8)]
...
)
copied to clipboard
you can create your CustomDayTileBuilder looking upon DefaultDayTileBuilder.
Selecting date callback #
If you want to get a callback when a date tile is clicked, there is onTap param:
Calendarro(
onTap: (date) {
//your code
}
...
)
copied to clipboard
Advanced usage: #
For more advanced usage see:
https://github.com/adamstyrc/parking-app

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.