clean_nepali_calendar 1.1.1+1

  • Readme
  • Changelog
  • Example
  • Installing
  • 55

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.


Features #

  • Extensive, yet easy to use API
  • View in Unicode Nepali or Roman literals
  • Gesture handling
  • Specifying available date range
  • Highly customizable

Usage #

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

Installation #

Add to pubspec.yaml:

  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;

void initState() {
  _calendarController = NepaliCalendarController();

Widget build(BuildContext context) {
  return CleanNepaliCalendar(
    controller: _calendarController,
    onDaySelected: (day){

Chec kout example project more detailed information.

1.1.1+1 #

  • Readme errors fixed
  • example errors fixed

1.1.1 #

  • Now you can use NepaliCalendarController to programmatically control the calendar

1.1.0 #

  • More header styling
  • Header tap and long press gesture callback
  • Header refactored

1.0.1 #

  • File formatted
  • Readme updated

1.0.0 - First Release #

  • First release
  • Header custom styling
  • Calendar styling


import 'package:clean_nepali_calendar/clean_nepali_calendar.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Clean Nepali Calendar Demo',
      theme: ThemeData(
      home: HomePage(),

class HomePage extends StatelessWidget {
  final NepaliCalendarController _nepaliCalendarController = NepaliCalendarController();
  Widget build(BuildContext context){
    final NepaliDateTime first =NepaliDateTime(2075,5);
    final NepaliDateTime last = NepaliDateTime(2077,3);
    return Scaffold(
      appBar: AppBar(
        title: Text('Clean Nepali Calendar'),
      body: SingleChildScrollView(
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: <Widget>[
              controller: _nepaliCalendarController,
              onHeaderLongPressed: (date) {
                print("header long pressed $date");
              onHeaderTapped: (date) {
                print("header tapped $date");
              calendarStyle: CalendarStyle(
                selectedColor: Colors.deepOrange,
                dayStyle: TextStyle(fontWeight: FontWeight.bold),
                todayStyle: TextStyle(
                  fontSize: 20.0,
                highlightSelected: true,
                renderDaysOfWeek: true,
                highlightToday: true,
              headerStyle: HeaderStyle(
                centerHeaderTitle: false,
                titleTextStyle: TextStyle(fontWeight: FontWeight.bold, color: Colors.deepOrange,fontSize: 20.0),
              firstDate: first,
              lastDate: last,
              language: Language.nepali,
              onDaySelected: (day){

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  clean_nepali_calendar: ^1.1.1+1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:clean_nepali_calendar/clean_nepali_calendar.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jul 2, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.13
  • Flutter: 1.17.5

Health issues and suggestions

Fix lib/src/days_view.dart. (-25 points)

Analysis of lib/src/days_view.dart failed with 1 error:

line 93 col 43: The getter 'weekDay' isn't defined for the type 'NepaliDateTime'.

Fix lib/src/nepali_calendar.dart. (-14.26 points)

Analysis of lib/src/nepali_calendar.dart reported 3 warnings:

line 93 col 5: Missing case clause for 'linux'.

line 93 col 5: Missing case clause for 'macOS'.

line 93 col 5: Missing case clause for 'windows'.

Maintenance issues and suggestions

No valid SDK. (-20 points)

The analysis could not detect a valid SDK that can use this package.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
nepali_utils >=2.2.0 <3.0.0 2.2.1
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8
Dev dependencies