Code Monkey home page Code Monkey logo

clean_nepali_calendar's Introduction

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

  • 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:

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.

clean_nepali_calendar's People

Contributors

itsmelaxman avatar lohanidamodar avatar rgtstha avatar stha-ums avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

clean_nepali_calendar's Issues

Calendar Week View format

  1. Week view calendar format to display one week at a time
  2. Option to configure selected format in calendar
  3. Option to switch calendar formats from controller

On Month Change Modification

When month swipped, the package doesn't respond to anything. At some extents, the requirements might not limit to days selected. Implementation of month changed would be a greay implementation.

Help Write Dart Doc Comments

Well, the calendar is getting better with recent merge #5.
We need to write documentation as well as dart doc comments to make it even better and improve pub score as well.

importing package having problem

Whenever I import the package its having an error.

 - 'NepaliDateTime' is from 'package:nepali_utils/src/nepali_date_time.dart' ('../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/nepali_utils-2.2.1/lib/src/nepali_date_time.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'weekDay'.
    final firstDayOffset = displayedMonth.weekDay - 1;
                                          ^^^^^^^ ```

Customizable features missing

You have mentioned that the calendar is highly customizable but I am only able to customize the style of the calendar. I want to customize the calendar with builder functions like in table calendar.
image
This is the design I need but in nepali year/month and date.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.