calender_picker 2.0.2 calender_picker: ^2.0.2 copied to clipboard
Flutter CalenderPicker Library that provides a calendar as a horizontal timeline and single section and multiple selections options also available.
CalenderPicker #
💥 Flutter CalenderPicker Library that provides a calendar as a horizontal timeline and single section and multiple selections options also available 💥
App Demo #
Let's get started #
How To Use #
Import the following package in your dart file
import 'package:calender_picker/calender_picker.dart';
Usage #
This version is breaking backwards compatibility
Use the CalenderPicker
Widget
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
CalenderPicker(
DateTime.now(),
initialSelectedDate: DateTime.now(),
selectionColor: Colors.black,
selectedTextColor: Colors.white,
onDateChange: (date) {
// New date selected
setState(() {
_selectedValue = date;
});
},
),
],
)
Constructor:
CalenderPicker(
this.startDate, {
Key? key,
this.enableMultiSelection = false,
this.monthTextStyle = defaultMonthTextStyle,
this.dayTextStyle = defaultDayTextStyle,
this.dateTextStyle = defaultDateTextStyle,
this.selectedTextColor = Colors.white,
this.selectionColor = AppColors.defaultSelectionColor,
this.initialSelectedDate,
this.activeDates,
this.daysCount = 500,
this.onDateChange,
this.locale = "en_US",
}) : super(key: key);