lohanidamodar / clean_nepali_calendar

Highly customizable Nepali Calendar package.
https://pub.dev/packages/clean_nepali_calendar
BSD 3-Clause "New" or "Revised" License
17 stars 24 forks source link
flutter flutter-nepal flutter-nepali-calendar flutter-package flutterdev nepali-calendar

Clean Nepali Calendar

Flutter package to display Nepali Calendar. Inspired greatly from nepali_date_picker and table_calendar.

Pub Package Publish

Highly customizable, feature-packed Flutter Nepali Calendar package.

Image Image Image

Features

Usage

Make sure to check out example project. For additional info please refer to API docs.

Installation

Add to pubspec.yaml:

dependencies:
  clean_nepali_calendar: latest

Then import it to your project:

import 'package:clean_nepali_calendar/clean_nepali_calendar.dart';

Then create and use the NepaliCalendarController and instantiate the CleanNepaliCalendar widget. works out of box;

@override
void initState() {
  super.initState();
  _calendarController = NepaliCalendarController();
}

@override
Widget build(BuildContext context) {
  return CleanNepaliCalendar(
    controller: _calendarController,
    onDaySelected: (day){
        print(day.toString());
    },
  );
}

Check out example project more detailed information.