-
Notifications
You must be signed in to change notification settings - Fork 36
/
tooltip.dart
41 lines (38 loc) · 1.16 KB
/
tooltip.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import 'package:another_xlider/enums/tooltip_direction_enum.dart';
import 'package:another_xlider/models/tooltip/tooltip_box.dart';
import 'package:another_xlider/models/tooltip/tooltip_position_offset.dart';
import 'package:flutter/material.dart';
class FlutterSliderTooltip {
Widget Function(dynamic value)? custom;
String Function(String value)? format;
TextStyle? textStyle;
FlutterSliderTooltipBox? boxStyle;
Widget? leftPrefix;
Widget? leftSuffix;
Widget? rightPrefix;
Widget? rightSuffix;
bool? alwaysShowTooltip;
bool? disabled;
bool? disableAnimation;
FlutterSliderTooltipDirection? direction;
FlutterSliderTooltipPositionOffset? positionOffset;
FlutterSliderTooltip({
this.custom,
this.format,
this.textStyle,
this.boxStyle,
this.leftPrefix,
this.leftSuffix,
this.rightPrefix,
this.rightSuffix,
this.alwaysShowTooltip,
this.disableAnimation,
this.disabled,
this.direction,
this.positionOffset,
});
@override
String toString() {
return '$textStyle-$boxStyle-$leftPrefix-$leftSuffix-$rightPrefix-$rightSuffix-$alwaysShowTooltip-$disabled-$disableAnimation-$direction-$positionOffset';
}
}