g_simple_calendar 0.0.3+2
g_simple_calendar: ^0.0.3+2 copied to clipboard

Simple calendar widget.

g_simple_calendar #

Simple Calendar Widget

Getting Started #

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

Props #

propstypesdefaultValues
dateDateTime
customButtonsListlength = 0
onRangeSelectedFunction(Listnull, 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

3
likes
70
pub points
13%
popularity

Publisher

80bits.com

Simple calendar widget.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, intl

More

Packages that depend on g_simple_calendar