Code Monkey home page Code Monkey logo

calendar_slider's Introduction

CalendarSlider widget with a lot of customization

License: MIT

Getting Started

  1. Depend on it Add it to your package's pubspec.yaml file
dependencies:
  flutter:
    sdk: flutter
  calendar_slider: version
  1. Install it Install packages from the command line
flutter pub get calendar_slider
  1. Import it Import it to your project
import 'package:calendar_slider/calendar_slider.dart';
SelectedDayPosition.center SelectedDayPosition.Left SelectedDayPosition.Right
FullCalendarScroll.vertical FullCalendarScroll.horizontal

Demo

Demo

How to use?

Use the CalendarAgenda Widget

CalendarSlider(
  initialDate: DateTime.now(),
  firstDate: DateTime.now().subtract(Duration(days: 140)),
  lastDate: DateTime.now().add(Duration(days: 4)),
  onDateSelected: (date) {
                    print(date);
                  },
)

Props

Props Types Required defaultValues
initialDate DateTime True
firstDate DateTime True
lastDate DateTime True
onDateSelected Funtion False
controller CalendarAgendaController? False
backgroundColor Color? False Colors.transparent
tileHeight double? False 60.0
selectedTileHeight double? False 75.0
dateColor Color? False Colors.black
selectedDateColor Color? False Colors.black
tileShadow BoxShadow? False BoxShadow(color: Colors.black.withOpacity(0.13),spreadRadius: 1,blurRadius: 2,offset: const Offset(0, 2),),
tileBackgroundColor Color? False Colors.white
selectedTileBackgroundColor Color? False Colors.blue
monthYearTextColor Color? False Colors.black
monthYearButtonBackgroundColor Color? False Colors.grey
calendarEventSelectedColor Color? False Colors.white
calendarEventColor Color? False Colors.blue
fullCalendarBackgroundImage DecorationImage? False null
locale String? False 'en'
events List<DateTime>? False []
fullCalendar bool False True
fullCalendarScroll FullCalendarScroll False FullCalendarScroll.horizontal
weekDay WeekDay False WeekDay.short
fullCalendarWeekDay WeekDay False WeekDay.short
selectedDayPosition SelectedDayPosition False SelectedDayPosition.center

Thank you

Special thanks goes to all contributors to this package. Make sure to check them out.

calendar_slider's People

Contributors

dhwanish-3 avatar shellyannissa avatar lucien144 avatar abulaman23 avatar

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.