marcelogil / el_tooltip

Flutter tooltip widget with smart positioning
MIT License
26 stars 15 forks source link

Failed assertion: line 206 pos 12: '_overlay != null': is not true. #26

Closed Dumoulin-Lander closed 2 weeks ago

Dumoulin-Lander commented 2 weeks ago

Since updating our version to 2.2.0 one of our tests is failing:

'package:flutter/src/widgets/overlay.dart': Failed assertion: line 206 pos 12: '_overlay != null':
is not true.

When the exception was thrown, this was the stack:
#2      OverlayEntry.remove (package:flutter/src/widgets/overlay.dart:206:12)
#3      _ElTooltipState.dispose.<anonymous closure> (package:el_tooltip/el_tooltip.dart:124:53)
#12     FakeAsync.flushMicrotasks (package:fake_async/fake_async.dart:197:32)
#13     AutomatedTestWidgetsFlutterBinding.scheduleWarmUpFrame (package:flutter_test/src/binding.dart:1380:24)
#14     _runWidget (package:flutter/src/widgets/binding.dart:1466:7)
#15     runApp (package:flutter/src/widgets/binding.dart:1399:3)
#16     TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1039:7)
2
<asynchronous suspension>
(elided 11 frames from class _AssertionError, dart:async, and package:stack_trace)

This issue does not exist/happen when downgrading our version to 2.0.0 again.

marcelogil commented 2 weeks ago

@Dumoulin-Lander , can you try again with the new version 2.2.1? Thanks!

Dumoulin-Lander commented 2 weeks ago

@Dumoulin-Lander , can you try again with the new version 2.2.1? Thanks!

That seems to have done the trick! Thanks!

marcelogil commented 2 weeks ago

I'm glad it worked. thanks for letting me know.