Skip to content

Commit 86a95b3

Browse files
Merge pull request #16 from psygo/patch-3
Minor Syntax Highlighting Improvements to README.md
2 parents cf574ec + ce2b162 commit 86a95b3

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,36 @@ import 'package:date_picker_timeline/date_picker_timeline.dart';
2121
Use 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

5656
Author

0 commit comments

Comments
 (0)