Skip to content

Commit

Permalink
fix(customWidgets): ensure rebuild stream work correctly for custom l…
Browse files Browse the repository at this point in the history
…ayer interaction widgets
  • Loading branch information
hm21 committed Sep 19, 2024
1 parent d3d94bb commit ca0d174
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ class _LayerInteractionHelperWidgetState
super.dispose();
}

@override
void setState(void Function() fn) {
_rebuildStream.add(null);
super.setState(fn);
}

void toggleTooltipVisibility(bool state) {
setState(() => _tooltipVisible = state);
}
Expand Down

0 comments on commit ca0d174

Please sign in to comment.