mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 08:38:18 +08:00
@@ -99,8 +99,6 @@ class _CustomTooltipState extends State<CustomTooltip> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum _ChildType { overlay, indicator }
|
|
||||||
|
|
||||||
class _CustomTooltipOverlay extends StatelessWidget {
|
class _CustomTooltipOverlay extends StatelessWidget {
|
||||||
const _CustomTooltipOverlay({
|
const _CustomTooltipOverlay({
|
||||||
required this.target,
|
required this.target,
|
||||||
@@ -121,14 +119,8 @@ class _CustomTooltipOverlay extends StatelessWidget {
|
|||||||
preferBelow: false,
|
preferBelow: false,
|
||||||
onTap: PlatformUtils.isMobile ? onDismiss : null,
|
onTap: PlatformUtils.isMobile ? onDismiss : null,
|
||||||
children: [
|
children: [
|
||||||
LayoutId(
|
indicator(),
|
||||||
id: _ChildType.indicator,
|
overlayWidget(),
|
||||||
child: indicator(),
|
|
||||||
),
|
|
||||||
LayoutId(
|
|
||||||
id: _ChildType.overlay,
|
|
||||||
child: overlayWidget(),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user