Skip to content

Commit

Permalink
Use RendererBinding instead of WidgetsBinding
Browse files Browse the repository at this point in the history
  • Loading branch information
robiness committed Nov 27, 2024
1 parent a2c6bfc commit e8e908a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/act/act.dart
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ class Act {
Offset position, {
bool throwIfInvisible = true,
}) {
final view = WidgetsBinding.instance.renderView;
final view = RendererBinding.instance.renderView;
final viewport = Offset.zero & view.size;
final isInRenderView = viewport.contains(position);
if (!isInRenderView && throwIfInvisible) {
Expand Down

0 comments on commit e8e908a

Please sign in to comment.