Skip to content

Commit

Permalink
fix: [MDS-1080] Fix MoonTooltip not showing on init (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kypsis committed Apr 5, 2024
1 parent 7d99203 commit 5514dd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/widgets/tooltip/tooltip.dart
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,10 @@ class _MoonTooltipState extends State<MoonTooltip> with RouteAware, SingleTicker

WidgetsBinding.instance.addPostFrameCallback((Duration _) {
widget.routeObserver?.subscribe(this, ModalRoute.of(context)! as PageRoute<dynamic>);

if (widget.show) {
_showTooltip();
}
});
}

Expand Down

0 comments on commit 5514dd5

Please sign in to comment.