g_simple_calendar 0.0.3+2 copy "g_simple_calendar: ^0.0.3+2" to clipboard
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 #

props types defaultValues
date DateTime
customButtons List length = 0
onRangeSelected Function(List null, get data selected days
visibleTitle bool false

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