Flutter Date Picker Timeline

Flutter Date Picker Timeline

DatePickerTimeline

Pub

Flutter Date Picker Library that provides a calendar as a horizontal timeline.

Flutter Date Picker Timeline

How To Use

Import the following package in your dart file

import 'package:date_picker_timeline/date_picker_timeline.dart';

Usage

Use the DatePickerTimeline Widget

Column(
    mainAxisAlignment: MainAxisAlignment.center,
    children: <Widget>[
      DatePickerTimeline(
        DateTime.now(),
        onDateChange: (date) {
          // New date selected
          print(date.day.toString());
        },
      ),
    ],
)
Constructor:
DatePickerTimeline(
  this.currentDate, {
  Key key,
  this.width,
  this.height = 80,
  this.monthTextStyle = defaultMonthTextStyle,
  this.dayTextStyle = defaultDayTextStyle,
  this.dateTextStyle = defaultDateTextStyle,
  this.selectionColor = AppColors.defaultSelectionColor,
  this.daysCount = 50000,
  this.onDateChange,
  this.locale,
}) : super(key: key);

Author

Contributors

Source Code

Please Visit Flutter Date Picker Timeline source at This Github