scrolling_years_calendar 1.0.4

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • new73

Flutter Scrolling Calendar 🗓

A customizable calendar widget to easily scroll through the years

pub version

Screenshot

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

example/main.dart

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

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

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

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

class _MyHomePageState extends State<MyHomePage> {

  @override
  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,
          initialYear: DateTime.now().year,
          startYear: 2016,
          endYear: 2019,

          // optional attributes
          currentDayColor: Colors.blue,
          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:


dependencies:
  scrolling_years_calendar: ^1.0.4

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
Popularity:
Describes how popular the package is relative to other packages. [more]
46
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
73
Learn more about scoring.

We analyzed this package on Nov 14, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.6
  • Flutter: 0.11.3

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Dependencies

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
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test