@@ -21,35 +21,38 @@ class TooltipActionButtonWidget extends StatelessWidget {
21
21
final theme = Theme .of (context);
22
22
23
23
return config.button ??
24
- GestureDetector (
25
- onTap: handleOnTap,
26
- child: Container (
27
- padding: config.padding,
28
- decoration: BoxDecoration (
29
- color: config.backgroundColor ?? theme.primaryColor,
30
- borderRadius: config.borderRadius,
31
- border: config.border,
32
- ),
33
- child: Row (
34
- mainAxisSize: MainAxisSize .min,
35
- children: [
36
- if (config.leadIcon != null )
37
- Padding (
38
- padding: config.leadIcon? .padding ??
39
- const EdgeInsets .only (right: 5 ),
40
- child: config.leadIcon? .icon,
41
- ),
42
- Text (
43
- config.name ?? config.type? .actionName ?? '' ,
44
- style: config.textStyle,
45
- ),
46
- if (config.tailIcon != null )
47
- Padding (
48
- padding: config.tailIcon? .padding ??
49
- const EdgeInsets .only (left: 5 ),
50
- child: config.tailIcon? .icon,
24
+ MouseRegion (
25
+ cursor: SystemMouseCursors .click,
26
+ child: GestureDetector (
27
+ onTap: handleOnTap,
28
+ child: Container (
29
+ padding: config.padding,
30
+ decoration: BoxDecoration (
31
+ color: config.backgroundColor ?? theme.primaryColor,
32
+ borderRadius: config.borderRadius,
33
+ border: config.border,
34
+ ),
35
+ child: Row (
36
+ mainAxisSize: MainAxisSize .min,
37
+ children: [
38
+ if (config.leadIcon != null )
39
+ Padding (
40
+ padding: config.leadIcon? .padding ??
41
+ const EdgeInsets .only (right: 5 ),
42
+ child: config.leadIcon? .icon,
43
+ ),
44
+ Text (
45
+ config.name ?? config.type? .actionName ?? '' ,
46
+ style: config.textStyle,
51
47
),
52
- ],
48
+ if (config.tailIcon != null )
49
+ Padding (
50
+ padding: config.tailIcon? .padding ??
51
+ const EdgeInsets .only (left: 5 ),
52
+ child: config.tailIcon? .icon,
53
+ ),
54
+ ],
55
+ ),
53
56
),
54
57
),
55
58
);
0 commit comments