@@ -680,18 +680,6 @@ enum TooltipDirection {
680680 bottom,
681681}
682682
683- /// Controls showing tooltip horizontal alignment relative to the rod.
684- enum BarTooltipAlign {
685- /// Tooltip shows horizontally center aligned with the rod.
686- center,
687-
688- /// Tooltip shows on the left side of the rod.
689- left,
690-
691- /// Tooltip shows on the right side of the rod.
692- right,
693- }
694-
695683/// Holds representation data for showing tooltip popup on top of rods.
696684class BarTouchTooltipData with EquatableMixin {
697685 /// if [BarTouchData.handleBuiltInTouches] is true,
@@ -712,7 +700,7 @@ class BarTouchTooltipData with EquatableMixin {
712700 double ? tooltipRoundedRadius,
713701 EdgeInsets ? tooltipPadding,
714702 double ? tooltipMargin,
715- BarTooltipAlign ? tooltipAlign,
703+ FLTooltipAlign ? tooltipAlign,
716704 double ? tooltipHorizontalOffset,
717705 double ? maxContentWidth,
718706 GetBarTooltipItem ? getTooltipItem,
@@ -726,15 +714,15 @@ class BarTouchTooltipData with EquatableMixin {
726714 tooltipPadding = tooltipPadding ??
727715 const EdgeInsets .symmetric (horizontal: 16 , vertical: 8 ),
728716 tooltipMargin = tooltipMargin ?? 16 ,
717+ tooltipAlign = tooltipAlign ?? FLTooltipAlign .center,
718+ tooltipHorizontalOffset = tooltipHorizontalOffset ?? 0 ,
729719 maxContentWidth = maxContentWidth ?? 120 ,
730720 getTooltipItem = getTooltipItem ?? defaultBarTooltipItem,
731721 fitInsideHorizontally = fitInsideHorizontally ?? false ,
732722 fitInsideVertically = fitInsideVertically ?? false ,
733723 direction = direction ?? TooltipDirection .auto,
734724 rotateAngle = rotateAngle ?? 0.0 ,
735725 tooltipBorder = tooltipBorder ?? BorderSide .none,
736- tooltipAlign = tooltipAlign ?? BarTooltipAlign .center,
737- tooltipHorizontalOffset = tooltipHorizontalOffset ?? 0 ,
738726 super ();
739727
740728 /// The tooltip background color.
@@ -750,7 +738,7 @@ class BarTouchTooltipData with EquatableMixin {
750738 final double tooltipMargin;
751739
752740 /// Controls showing tooltip on left side, right side or center aligned with rod, default is center
753- final BarTooltipAlign tooltipAlign;
741+ final FLTooltipAlign tooltipAlign;
754742
755743 /// Applies horizontal offset for showing tooltip, default is zero.
756744 final double tooltipHorizontalOffset;
0 commit comments