Skip to content

Commit

Permalink
Merge pull request #16 from Avyiel/master
Browse files Browse the repository at this point in the history
Fixed order of weeks (#15)
  • Loading branch information
hyochan authored Nov 18, 2018
2 parents 0789fc2 + 3b5a68a commit 0d0ca06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/flutter_calendar_carousel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,9 @@ class _CalendarState extends State<CalendarCarousel> {

/// Setup week-only format
DateTime now = DateTime.now();
List<DateTime> week0 = _getDaysInWeek(now);
List<DateTime> week1 =
List<DateTime> week0 =
_getDaysInWeek(now.subtract(new Duration(days: 7)));
List<DateTime> week1 = _getDaysInWeek(now);
List<DateTime> week2 = _getDaysInWeek(now.add(new Duration(days: 7)));

setState(() {
Expand Down

0 comments on commit 0d0ca06

Please sign in to comment.