marked_date_picker 0.0.1 copy "marked_date_picker: ^0.0.1" to clipboard
marked_date_picker: ^0.0.1 copied to clipboard

outdated

Customized DatePicker for displaying marked date.

Customized DatePicker for displaying marked dates.

Features #

This is minor-copy of showDatePicker. but maybe you need this if you want marking dates on datepicker.

Getting started #

  1. import 'package:marked_date_picker/marked_date_picker.dart';
  2. call showMarkedDatePicker.

Usage #

ValueNotifier<List<DateTime>> markedDatesNotifier = ValueNotifier<List<DateTime>>(
      _getMarkedList(date.year, date.month),
    );

showMarkedDatePicker(
  context: context,
  initialDate: date,
  lastDate: now,
  firstDate: DateTime(2019),
  markedDates: markedDates,
  markedDatesListenable: markedDatesNotifier,
  updateMonthCallback: (year, month) {
    markedDatesNotifier.value = DateTime.parse([
      DateTime.parse("2021-09-02"),
      DateTime.parse("2021-09-04"),
      DateTime.parse("2021-09-09"),
      DateTime.parse("2021-09-10"),
    ]
  },
);

Additional information #

0
likes
80
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

Customized DatePicker for displaying marked date.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on marked_date_picker