Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.6

- fix: Expose `ScrollController` on `HeatMap`.

## 1.0.5

- feat: Created the `onMonthChange` callback on the `HeatMapCalendar`.
Expand Down
6 changes: 6 additions & 0 deletions lib/src/heatmap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ class HeatMap extends StatefulWidget {
/// default value is false.
final bool scrollable;

/// An object that can be used to control the position to which this scroll
/// view is scrolled.
final ScrollController? scrollController;

/// Widgets which shown at left and right side of colorTip.
///
/// First value is the left side widget and second value is the right side widget.
Expand Down Expand Up @@ -104,6 +108,7 @@ class HeatMap extends StatefulWidget {
this.showText = false,
this.showColorTip = true,
this.scrollable = false,
this.scrollController,
this.colorTipHelper,
this.colorTipCount,
this.colorTipSize,
Expand All @@ -119,6 +124,7 @@ class _HeatMap extends State<HeatMap> {
return widget.scrollable
? SingleChildScrollView(
reverse: true,
controller: widget.scrollController,
scrollDirection: Axis.horizontal,
child: child,
)
Expand Down