Skip to content
Merged
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: 2 additions & 2 deletions lib/src/super_tooltip.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'bubble_shape.dart';
import 'enums.dart';
import 'shape_overlay.dart';
import 'super_tooltip_controller.dart';
import 'tooltip_position_delegate.dart';
import 'super_tooltip_position_delegate.dart';

typedef DecorationBuilder = Decoration Function(
Offset target,
Expand Down Expand Up @@ -722,7 +722,7 @@ class _SuperTooltipState extends State<SuperTooltip>
showWhenUnlinked: false,
offset: offsetToTarget,
child: CustomSingleChildLayout(
delegate: ToolTipPositionDelegate(
delegate: SuperTooltipPositionDelegate(
preferredDirection: preferredDirection,
constraints: constraints,
top: top,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import 'package:flutter/material.dart';
import 'enums.dart';
import 'utils.dart';

class ToolTipPositionDelegate extends SingleChildLayoutDelegate {
ToolTipPositionDelegate({
class SuperToolTipPositionDelegate extends SingleChildLayoutDelegate {
SuperToolTipPositionDelegate({
required this.snapsFarAwayVertically,
required this.snapsFarAwayHorizontally,
required this.preferredDirection,
Expand Down Expand Up @@ -133,5 +133,5 @@ class ToolTipPositionDelegate extends SingleChildLayoutDelegate {
}

@override
bool shouldRelayout(ToolTipPositionDelegate oldDelegate) => true;
bool shouldRelayout(SuperToolTipPositionDelegate oldDelegate) => true;
}
Loading