scrolling_years_calendar 1.0.3

  • Example
  • Installing
  • Versions
  • 80

Flutter Scrolling Calendar 🗓 #

A customizable calendar widget to easily scroll through the years


Features #

  • Choose range of years and the initial year to show
  • Callback on month-tap with date information
  • Choose the color of the current day indicator
  • Override the default month names

Planned Features #

  • Customizable color indications per date
  • Allow for better customization of elements
  • Zoom-in to month view on tap in year-view
  • Zoom-in to day view on tap in month-view
  • Infinite scrolling

Contributors #

1.0.0 - 28-10-2018 #

  • Initial release


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

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

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Scrolling Years Calendar',
      home: new MyHomePage(),

class MyHomePage extends StatefulWidget {
  _MyHomePageState createState() => new _MyHomePageState();

class _MyHomePageState extends State<MyHomePage> {

  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text("Flutter Scrolling Calendar"),
      body: new Center(
        child: ScrollingYearsCalendar(

          // required attributes
          context: context,
          startYear: 2016,
          endYear: 2019,

          // optional attributes
          customMonthNames: ["Jan", "Feb", "Mar", "Apr", "May", 
          "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
          onMonthClick: (int year, int month) => print("Clicked $month/$year"),


Use this package as a library

1. Depend on it

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

  scrolling_years_calendar: ^1.0.3

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:

import 'package:scrolling_years_calendar/scrolling_years_calendar.dart';
Version Uploaded Documentation Archive
1.0.4 Oct 28, 2018 Go to the documentation of scrolling_years_calendar 1.0.4 Download scrolling_years_calendar 1.0.4 archive
1.0.3 Oct 28, 2018 Go to the documentation of scrolling_years_calendar 1.0.3 Download scrolling_years_calendar 1.0.3 archive
1.0.2 Oct 28, 2018 Go to the documentation of scrolling_years_calendar 1.0.2 Download scrolling_years_calendar 1.0.2 archive
1.0.1 Oct 28, 2018 Go to the documentation of scrolling_years_calendar 1.0.1 Download scrolling_years_calendar 1.0.1 archive
1.0.0 Oct 28, 2018 Go to the documentation of scrolling_years_calendar 1.0.0 Download scrolling_years_calendar 1.0.0 archive
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 May 8, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.0
  • pana: 0.12.15
  • Flutter: 1.5.8


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/month_title.dart.

Run flutter format to format lib/month_title.dart.

Format lib/month_view.dart.

Run flutter format to format lib/month_view.dart.

Format lib/scrolling_years_calendar.dart.

Run flutter format to format lib/scrolling_years_calendar.dart.

Fix additional 3 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/utils/dates.dart (Run flutter format to format lib/utils/dates.dart.)
  • lib/utils/screen_sizes.dart (Run flutter format to format lib/utils/screen_sizes.dart.)
  • lib/year_view.dart (Run flutter format to format lib/year_view.dart.)

Maintenance suggestions

The package description is too short. (-7 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies