flutter datepickertimeline
flutter date picker library that provides a calendar as a horizontal 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.datesize = dimen.datetextsize,
this.daysize = dimen.daytextsize,
this.monthsize = dimen.monthtextsize,
this.datecolor = appcolors.defaultdatecolor,
this.monthcolor = appcolors.defaultmonthcolor,
this.daycolor = appcolors.defaultdaycolor,
this.selectioncolor = appcolors.defaultselectioncolor,
this.ondatechange,
}) : super(key: key);
Comments are closed.