g_simple_calendar

Simple Calendar Widget

Getting Started

For help getting started with Flutter, view our online documentation.

Props

propstypesdefaultValues
dateDateTime
customButtonsListlength = 0
onRangeSelectedFunction(List)null, get data selected days
visibleTitleboolfalse

Install

Add g_simple_calendar as a dependency in pubspec.yaml For help on adding as a dependency, view the documentation.

Usage

Widget build(BuildContext context) {
    
    var custom = List<GCustomButtonModel>();

    custom.add(GCustomButtonModel(
      number: 12,
      fillColor: Colors.yellow
    ));

    custom.add(GCustomButtonModel(
      number: 22,
      fillColor: Colors.blue,
      enable: false
    ));
    
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: GSimpleCalendar(
        date: DateTime.now(),
        customButtons: custom
      ),
    );
  }
screenshot1

About me

80bits.com

80bits.blog

Libraries

g_simple_calendar
gCellButton
gCustomButtonModel