Skip to content

Commit

Permalink
Add showOnTopOfTheChartBoxArea
Browse files Browse the repository at this point in the history
  • Loading branch information
itome committed Nov 1, 2023
1 parent 1820a00 commit 532847f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/chart/bar_chart/bar_chart_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ class BarTouchTooltipData with EquatableMixin {
TooltipDirection? direction,
double? rotateAngle,
BorderSide? tooltipBorder,
bool? showOnTopOfTheChartBoxArea,
}) : tooltipBgColor = tooltipBgColor ?? Colors.blueGrey.darken(15),
tooltipRoundedRadius = tooltipRoundedRadius ?? 4,
tooltipPadding = tooltipPadding ??
Expand All @@ -720,6 +721,7 @@ class BarTouchTooltipData with EquatableMixin {
direction = direction ?? TooltipDirection.auto,
rotateAngle = rotateAngle ?? 0.0,
tooltipBorder = tooltipBorder ?? BorderSide.none,
showOnTopOfTheChartBoxArea = showOnTopOfTheChartBoxArea ?? false,
super();

/// The tooltip background color.
Expand Down Expand Up @@ -761,6 +763,8 @@ class BarTouchTooltipData with EquatableMixin {
/// The tooltip border color.
final BorderSide tooltipBorder;

final bool showOnTopOfTheChartBoxArea;

/// Used for equality check, see [EquatableMixin].
@override
List<Object?> get props => [
Expand Down

0 comments on commit 532847f

Please sign in to comment.