calendar_views 0.5.1

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

calendar_views

Collection of customisable calendar related widgets for Flutter.

Day View

Day View Documentation

Set of widgets for displaying a day view.

Day view can display a single or multiple days.

dayview_example_screenshot

Days Page View

Widget similar to PageView, but instead of page-number it gives each page a list of days.

DaysPageView can display virtually infinite number of pages.

Month Page View

Widget similar to PageView, but instead of page-number it gives each page a month.

MonthPageView can display virtually infinite number of pages.

Month View

Widget for displaying a grid of days of some month and optionally a header.

monthview_example_screenshot

[0.5.1]

  • Fixed error with different imports of Future
  • Fixed errors with generated API docs

[0.5.0]

  • Initial release

example/lib/main.dart

import 'package:flutter/material.dart';

import 'days_page_view_example.dart';
import 'day_view_example.dart';
import 'month_page_view_example.dart';
import 'month_view_example.dart';

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

/// Screen for picking different examples of this library.
///
/// Examples:
/// * [DayView example](day_view_example.dart)
/// * [DaysPageView example](days_page_view_example.dart)
/// * [MonthPageView example](month_page_view_example.dart)
/// * [MonthView example](month_view_example.dart)
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: "calendar_views example",
      home: new Scaffold(
        appBar: new AppBar(
          title: new Text("calendar_views example"),
        ),
        body: new Builder(builder: (BuildContext context) {
          return new ListView(
            children: <Widget>[
              new ListTile(
                title: new Text("Day View"),
                subtitle: new Text("DayView Example"),
                onTap: () {
                  _showWidgetInFullScreenDialog(
                    context,
                    new DayViewExample(),
                  );
                },
              ),
              new Divider(height: 0.0),
              new ListTile(
                title: new Text("Days Page View"),
                subtitle: new Text("DaysPageView Example"),
                onTap: () {
                  _showWidgetInFullScreenDialog(
                    context,
                    new DaysPageViewExample(),
                  );
                },
              ),
              new Divider(height: 0.0),
              new ListTile(
                title: new Text("Month Page View"),
                subtitle: new Text("MonthPageView Example"),
                onTap: () {
                  _showWidgetInFullScreenDialog(
                    context,
                    new MonthPageViewExample(),
                  );
                },
              ),
              new Divider(height: 0.0),
              new ListTile(
                title: new Text("Month View"),
                subtitle: new Text("MonthView Example"),
                onTap: () {
                  _showWidgetInFullScreenDialog(
                    context,
                    new MonthViewExample(),
                  );
                },
              ),
              new Divider(height: 0.0),
            ],
          );
        }),
      ),
    );
  }

  void _showWidgetInFullScreenDialog(BuildContext context, Widget widget) {
    Navigator.of(context).push(
      new MaterialPageRoute(
        fullscreenDialog: true,
        builder: (BuildContext context) {
          return widget;
        },
      ),
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  calendar_views: ^0.5.1

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:calendar_views/calendar_views.dart';
  
Version Uploaded Documentation Archive
0.5.1 Sep 29, 2018 Go to the documentation of calendar_views 0.5.1 Download calendar_views 0.5.1 archive
0.5.0 Sep 28, 2018 Go to the documentation of calendar_views 0.5.0 Download calendar_views 0.5.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
75
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]
87
Learn more about scoring.

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

  • Dart: 2.1.0
  • pana: 0.12.7
  • Flutter: 1.0.0

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
flutter 0.0.0
meta ^1.1.5 1.1.6
quiver ^2.0.0+1 2.0.1
Transitive dependencies
collection 1.14.11
matcher 0.12.4
path 1.6.2
sky_engine 0.0.99
stack_trace 1.9.3
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test