Skip to content

Commit

Permalink
✅ ++
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Oct 17, 2023
1 parent 688ac86 commit 9941e7b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/toast_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,13 @@ void main() {
await tester.pumpAndSettle();
final AnimatedPadding widget =
tester.firstWidget(find.byType(AnimatedPadding)) as AnimatedPadding;
final MediaQuery mediaQueryWidget = tester.widget(
find.ancestor(
of: find.byType(AnimatedPadding),
matching: find.byType(MediaQuery),
),
// ignore: deprecated_member_use
final mediaQueryData = MediaQueryData.fromWindow(
// ignore: deprecated_member_use
TestWidgetsFlutterBinding.instance.window,
);
final windowInsets = EdgeInsets.only(
bottom: mediaQueryWidget.data.viewInsets.bottom,
bottom: mediaQueryData.viewInsets.bottom,
);
expect(
const EdgeInsets.only(top: verticalOffset) + windowInsets,
Expand Down

0 comments on commit 9941e7b

Please sign in to comment.