Skip to content

Commit

Permalink
Use size from view, not ViewConfiguration
Browse files Browse the repository at this point in the history
size was removed from ViewConfiguration flutter/flutter#138648
  • Loading branch information
passsy committed Dec 20, 2023
1 parent f3a80ba commit 1a026b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/act/act.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ class Act {
RenderBox renderBox, {
required WidgetSelector selector,
}) {
final Rect viewport =
// ignore: deprecated_member_use
Offset.zero & WidgetsBinding.instance.renderView.configuration.size;
// ignore: deprecated_member_use
final view = WidgetsBinding.instance.renderView;
final Rect viewport = Offset.zero & view.size;
final Rect location =
renderBox.localToGlobal(Offset.zero) & renderBox.paintBounds.size;

Expand Down

0 comments on commit 1a026b5

Please sign in to comment.