date_picker_timeline_trendway 1.0.4 copy "date_picker_timeline_trendway: ^1.0.4" to clipboard
date_picker_timeline_trendway: ^1.0.4 copied to clipboard

Flutter Date Picker Library that provides a calendar as a horizontal timeline with enabled dates option.

DatePickerTimeline #

Pub

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

forked and modified from DatePickerTimeline

How To Use #

Import the following package in your dart file

import 'package:date_picker_timeline/date_picker_timeline.dart';

Usage #

This version is breaking backwards compatibility

Use the DatePicker Widget

Column(
    mainAxisAlignment: MainAxisAlignment.center,
    children: <Widget>[
      DatePicker(
        DateTime.now(),
        initialSelectedDate: DateTime.now(),
        selectionColor: Colors.black,
        selectedTextColor: Colors.white,
        onDateChange: (date) {
          // New date selected
          setState(() {
            _selectedValue = date;
          });
        },
      ),
    ],
)
Constructor:
DatePicker(
    this.startDate, {
    Key key,
    this.width = 60,
    this.height = 80,
    this.controller,
    this.monthTextStyle = defaultMonthTextStyle,
    this.dayTextStyle = defaultDayTextStyle,
    this.dateTextStyle = defaultDateTextStyle,
    this.selectedTextColor = Colors.white,
    this.selectionColor = AppColors.defaultSelectionColor,
    this.initialSelectedDate,
    this.daysCount = 500,
    this.onDateChange,
    this.locale = "en_US",
    this.enabledDates,
}) : super(key: key);

Author #

Contributors #

4
likes
15
pub points
0%
popularity

Publisher

unverified uploader

Flutter Date Picker Library that provides a calendar as a horizontal timeline with enabled dates option.

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

flutter, intl

More

Packages that depend on date_picker_timeline_trendway