Skip to content

Commit e165762

Browse files
authored
minor syntax highlighting improvements
1 parent e96aeae commit e165762

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

README.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,45 +12,45 @@ Flutter Date Picker Library that provides a calendar as a horizontal timeline.
1212

1313
Import the following package in your dart file
1414

15-
```
15+
```dart
1616
import 'package:date_picker_timeline/date_picker_timeline.dart';
1717
```
1818

1919
## Usage
2020

2121
Use 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

5656
Author
@@ -62,4 +62,4 @@ Author
6262
Contributors
6363
------------
6464
* [BradInTheUSA](https://github.com/bradintheusa)
65-
* [Roger](https://github.com/rogermedeirosdasilva)
65+
* [Roger](https://github.com/rogermedeirosdasilva)

0 commit comments

Comments
 (0)