File tree Expand file tree Collapse file tree 1 file changed +25
-25
lines changed Expand file tree Collapse file tree 1 file changed +25
-25
lines changed Original file line number Diff line number Diff line change @@ -21,36 +21,36 @@ import 'package:date_picker_timeline/date_picker_timeline.dart';
2121Use the ` DatePickerTimeline ` Widget
2222
2323``` dart
24- Column(
25- mainAxisAlignment: MainAxisAlignment.center,
26- children: <Widget>[
27- DatePickerTimeline(
28- DateTime.now(),
29- onDateChange: (date) {
30- // New date selected
31- print(date.day.toString());
32- },
33- ),
34- ],
35- ),
24+ Column(
25+ mainAxisAlignment: MainAxisAlignment.center,
26+ children: <Widget>[
27+ DatePickerTimeline(
28+ DateTime.now(),
29+ onDateChange: (date) {
30+ // New date selected
31+ print(date.day.toString());
32+ },
33+ ),
34+ ],
35+ )
3636```
3737
3838##### Constructor:
3939
4040``` dart
41- DatePickerTimeline(
42- this.currentDate, {
43- Key key,
44- this.width,
45- this.height = 80,
46- this.monthTextStyle = defaultMonthTextStyle,
47- this.dayTextStyle = defaultDayTextStyle,
48- this.dateTextStyle = defaultDateTextStyle,
49- this.selectionColor = AppColors.defaultSelectionColor,
50- this.daysCount = 50000,
51- this.onDateChange,
52- this.locale,
53- }) : super(key: key);
41+ DatePickerTimeline(
42+ this.currentDate, {
43+ Key key,
44+ this.width,
45+ this.height = 80,
46+ this.monthTextStyle = defaultMonthTextStyle,
47+ this.dayTextStyle = defaultDayTextStyle,
48+ this.dateTextStyle = defaultDateTextStyle,
49+ this.selectionColor = AppColors.defaultSelectionColor,
50+ this.daysCount = 50000,
51+ this.onDateChange,
52+ this.locale,
53+ }) : super(key: key);
5454```
5555
5656Author
You can’t perform that action at this time.
0 commit comments