@@ -12,45 +12,45 @@ Flutter Date Picker Library that provides a calendar as a horizontal timeline.
1212
1313Import the following package in your dart file
1414
15- ```
15+ ``` dart
1616import 'package:date_picker_timeline/date_picker_timeline.dart';
1717```
1818
1919## Usage
2020
2121Use the ` DatePickerTimeline ` Widget
2222
23- ```
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- ),
23+ ``` 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+ ),
3636```
3737
3838##### Constructor:
3939
40- ```
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);
40+ ``` 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);
5454```
5555
5656Author
6262Contributors
6363------------
6464* [ BradInTheUSA] ( https://github.com/bradintheusa )
65- * [ Roger] ( https://github.com/rogermedeirosdasilva )
65+ * [ Roger] ( https://github.com/rogermedeirosdasilva )
0 commit comments