Skip to content

Commit

Permalink
fix: delete old commented code and format tooltipWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
José Azevedo committed Dec 10, 2022
1 parent a4489d1 commit 311c41e
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions lib/another_xlider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2025,25 +2025,24 @@ class FlutterSliderState extends State<FlutterSlider>
}

Widget tooltipWidget = IgnorePointer(
child: Center(
child: FittedBox(
child: Container(
// height: ,
// height: __tooltipKEY.currentContext.size.height,
key: (side == 'left') ? leftTooltipKey : rightTooltipKey,
// alignment: Alignment.center,
child: (widget.tooltip != null && widget.tooltip!.custom != null)
? widget.tooltip!.custom!(value)
: Container(
padding: const EdgeInsets.all(8),
decoration: _tooltipData.boxStyle!.decoration,
foregroundDecoration:
_tooltipData.boxStyle!.foregroundDecoration,
transform: _tooltipData.boxStyle!.transform,
child: tooltipHolderWidget),
child: Center(
child: FittedBox(
child: Container(
key: (side == 'left') ? leftTooltipKey : rightTooltipKey,
child: (widget.tooltip != null && widget.tooltip!.custom != null)
? widget.tooltip!.custom!(value)
: Container(
padding: const EdgeInsets.all(8),
decoration: _tooltipData.boxStyle!.decoration,
foregroundDecoration:
_tooltipData.boxStyle!.foregroundDecoration,
transform: _tooltipData.boxStyle!.transform,
child: tooltipHolderWidget,
),
),
),
),
));
);

double? top, right, bottom, left;
switch (_tooltipData.direction) {
Expand Down

0 comments on commit 311c41e

Please sign in to comment.