cellBuilder property
Callback used to build each cell corresponding to a day of the month.
Here's an example of a calendar that builds days in circled inkwells.
CalendarPlus(
controller:controller,
cellBuilder:(context, date) {
return Material(
shape: CircleBorder(),
color: Jiffy(date).isSame(Jiffy(), Units.DAY)
? Colors.blue
: Colors.transparent,
child: InkWell(
hoverColor: Colors.grey.shade200,
customBorder: CircleBorder(),
onTap: () {},
child: Center(
child: Text('${Jiffy(date).date}'
),
),
),
);
Implementation
final CellBuilder cellBuilder;