fix(player): 使用根Overlay渲染飘心
This commit is contained in:
1 parent
30b43878ab
commit
9039b27c7f
3 files changed
+63
-81
No files matched your search
@@ -170,9 +170,7 @@ class _PlayerTapGestureRegionState extends State<PlayerTapGestureRegion> {
|
||||
final id = _nextHeartBurstId++;
|
||||
late final OverlayEntry entry;
|
||||
entry = OverlayEntry(
|
||||
builder: (context) => Positioned(
|
||||
left: origin.dx,
|
||||
top: origin.dy,
|
||||
builder: (context) => Positioned.fill(
|
||||
child: IgnorePointer(
|
||||
child: PlayerDoubleTapHeartBurst(
|
||||
key: ValueKey('heart-overlay-$id'),
|
||||
|
||||
Reference in new issue
Block a user