advanced_date_picker 0.0.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 17

horizontal_date_picker #

A new flutter plugin project aims to implement horizontal date picker.

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

depandancy packeges #

  • intl: 0.15.8
  • swipedetector: 1.2.0

0.0.1 #

  • TODO: Describe initial release.


import 'package:flutter/material.dart';
import 'package:horizontal_date_picker/horizontal_date_picker.dart';
import 'package:horizontal_date_picker/date_row.dart';
import 'package:intl/intl.dart';

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

class MyApp extends StatefulWidget {
  _MyAppState createState() => _MyAppState();

class _MyAppState extends State<MyApp> {
  void initState() {

  DateTime chosen =;
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        body: Container(
            padding: EdgeInsets.all(20),
            child: Center(
              child: Column(
                mainAxisAlignment: MainAxisAlignment.spaceAround,
                mainAxisSize: MainAxisSize.max,
                children: <Widget>[
                    onDateChoosen: (date) {
                      setState(() {
                        chosen = date;
                    height: 60,
                    builder: (context, i, d, width) {
                      if (i != 2)
                        return DateRow(
                          width: width,
                        return DateRow(
                          selectedDayStyle: TextStyle(color: Colors.white),
                              TextStyle(color: Colors.white),
                          selectedMonthStyle: TextStyle(color: Colors.white),
                          width: width,
                    'chosen date',
                    style: TextStyle(fontWeight: FontWeight.w500),
                    style: TextStyle(
                      fontSize: 20,

Use this package as a library

1. Depend on it

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

  advanced_date_picker: ^0.0.1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:

import 'package:advanced_date_picker/date_helper.dart';
import 'package:advanced_date_picker/date_row.dart';
import 'package:advanced_date_picker/horizontal_date_picker.dart';
import 'package:advanced_date_picker/time.dart';
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 Mar 27, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6
  • Flutter: 1.12.13+hotfix.8

Health issues and suggestions

Fix lib/horizontal_date_picker.dart. (-58.02 points)

Analysis of lib/horizontal_date_picker.dart failed with 3 errors, 1 hint:

line 3 col 8: Target of URI doesn't exist: 'package:horizontal_date_picker/date_helper.dart'.

line 4 col 8: Target of URI doesn't exist: 'package:horizontal_date_picker/date_row.dart'.

line 79 col 21: The method 'getCurrentDate' isn't defined for the class '_HorizontalDateState'.

line 7 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: HorizontalDatePicker.after, HorizontalDatePicker.before, HorizontalDatePicker.inintialDate, HorizontalDatePicker.height, HorizontalDatePicker.builder, HorizontalDatePicker.onDateChoosen

Fix lib/date_row.dart. (-25.38 points)

Analysis of lib/date_row.dart failed with 1 error, 1 hint:

line 2 col 8: Target of URI doesn't exist: 'package:horizontal_date_picker/date_helper.dart'.

line 6 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: DateRow.width, DateRow.background, DateRow.selectedMonthStyle, DateRow.selectedDayStyle, DateRow.selectedDayOfWeekStyle

Fix lib/time.dart. (-0.50 points)

Analysis of lib/time.dart reported 1 hint:

line 1 col 8: Unused import: 'package:flutter/painting.dart'.

Format lib/date_helper.dart.

Run flutter format to format lib/date_helper.dart.

Maintenance issues and suggestions

No valid SDK. (-20 points)

The analysis could not detect a valid SDK that can use this package.

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (intl).

The package description is too short. (-20 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 is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
intl ^0.15.8 0.15.8 0.16.1
swipedetector ^1.2.0 1.2.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
path 1.6.4
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies