Skip to content

Commit

Permalink
Merge pull request #21 from szotp/master
Browse files Browse the repository at this point in the history
add custom physics parameter
  • Loading branch information
hyochan authored Dec 5, 2018
2 parents 929cdff + c7a852c commit 48977ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/flutter_calendar_carousel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class CalendarCarousel extends StatefulWidget {
final EdgeInsets weekDayMargin;
final bool weekFormat;
final bool showHeaderButton;
final ScrollPhysics customGridViewPhysics;

CalendarCarousel({
this.weekDays = const ['Sun', 'Mon', 'Tue', 'Wed', 'Thur', 'Fri', 'Sat'],
Expand Down Expand Up @@ -122,6 +123,7 @@ class CalendarCarousel extends StatefulWidget {
this.weekDayMargin = const EdgeInsets.only(bottom: 4.0),
this.weekFormat = false,
this.showHeaderButton = true,
this.customGridViewPhysics,
});

@override
Expand Down Expand Up @@ -261,6 +263,7 @@ class _CalendarState extends State<CalendarCarousel> {
width: double.infinity,
height: double.infinity,
child: GridView.count(
physics: widget.customGridViewPhysics,
crossAxisCount: 7,
childAspectRatio: widget.childAspectRatio,
padding: EdgeInsets.zero,
Expand Down

0 comments on commit 48977ec

Please sign in to comment.