Giter Site home page Giter Site logo

brad007 / flutter_advanced_calendar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alex-melnyk/flutter_advanced_calendar

0.0 0.0 0.0 697 KB

https://pub.dev/packages/flutter_advanced_calendar

Home Page: https://pub.dev/packages/flutter_advanced_calendar

License: BSD 3-Clause "New" or "Revised" License

Ruby 3.77% Objective-C 0.11% Kotlin 0.42% Dart 94.58% Swift 1.12%

flutter_advanced_calendar's Introduction

flutter_advanced_calendar

An advanced calendar provides a rich API for widget customization that opens a new look and feel in your app.

Advanced Calendar Theme LAF

Advanced Calendar Light Theme Advanced Calendar Dark Theme
PREVIEW_LIGHT_COLLAPSED PREVIEW_DARK_COLLAPSED
PREVIEW_LIGHT_EXPANDED PREVIEW_DARK_EXPANDED

Examples

Regular Calendar

final _controller = AdvancedCalendarController.today();
// ...
AdvancedCalendar(
    controller: _controller,
)
// ...

Custom Date Calendar

final _controller = AdvancedCalendarController.custom(DateTime(2021, 2, 15));
// ...
final theme = ThemeData.light();

Theme(
  data: theme.copyWith(
    textTheme: theme.textTheme.copyWith(
      subtitle1: Ttheme.textTheme.subtitle1.copyWith(
        fontSize: 16,
        color: theme.accentColor,
      ),
      bodyText1: theme.textTheme.bodyText1.copyWith(
        fontSize: 14,
        color: Colors.black54,
      ),
      bodyText2: theme.textTheme.bodyText1.copyWith(
        fontSize: 12,
        color: Colors.black87,
      ),
    ),
    primaryColor: Colors.red,
    highlightColor: Colors.yellow,
    disabledColor: Colors.green,
  ),
  child: AdvancedCalendar(
    controller: _calendarControllerCustom,
    weekLineHeight: 48.0,
  ),
),
// ...

AdvancedCalendar Parameters

Parameter Description Type Default
controller Controller that manage calendar state AdvancedCalendarController required
weekLineHeight Height of week line double 32.0
preloadMonthViewAmount Amount of months in month view to preload int 13
preloadWeekViewAmount Amount of weeks in week view to preload int 21
weeksInMonthViewAmount Weeks lines amount in month view int 6
events List of DateTime to indicate date List []
startWeekDay Indicated for the beginning of the first day on Sunday int 0
innerDot Show alternative event design in date box bool false
headerStyle Style for month year on top left TextStyle null
calendarTextStyle Style for dates in calendar TextStyle null

flutter_advanced_calendar's People

Contributors

alex-melnyk avatar ozalisky avatar nazar-himei avatar eugenekan-dev 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.