You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constString message ='Floating SnackBar presented off screen.\n'
1669
+
'A SnackBar with behavior property set to SnackBarBehavior.floating is fully '
1670
+
'or partially off screen because some or all the widgets provided to '
1671
+
'Scaffold.floatingActionButton, Scaffold.persistentFooterButtons and '
1672
+
'Scaffold.bottomNavigationBar take up too much vertical space.\n'
1673
+
'Consider constraining the size of these widgets to allow room for the SnackBar to be visible.';
1674
+
expect(exception.message, message);
1675
+
}
1676
+
1677
+
testWidgets('Snackbar with SnackBarBehavior.floating will assert when offsetted too high by a large Scaffold.floatingActionButton', (WidgetTester tester) async {
1678
+
// Regression test for https://github.com/flutter/flutter/issues/84263
testWidgets('Snackbar with SnackBarBehavior.floating will assert when offsetted too high by a large Scaffold.persistentFooterButtons', (WidgetTester tester) async {
1713
+
// Regression test for https://github.com/flutter/flutter/issues/84263
await tester.pumpAndSettle(); // Have the SnackBar fully animate out.
1724
+
expectSnackBarNotVisibleError(tester);
1725
+
});
1726
+
1727
+
testWidgets('Snackbar with SnackBarBehavior.floating will assert when offsetted too high by a large Scaffold.bottomNavigationBar', (WidgetTester tester) async {
1728
+
// Regression test for https://github.com/flutter/flutter/issues/84263
1729
+
await tester.pumpWidget(
1730
+
constMaterialApp(
1731
+
home:Scaffold(
1732
+
bottomNavigationBar:SizedBox(height:1000),
1733
+
),
1734
+
),
1735
+
);
1736
+
1737
+
awaitopenFloatingSnackBar(tester);
1738
+
await tester.pumpAndSettle(); // Have the SnackBar fully animate out.
1739
+
expectSnackBarNotVisibleError(tester);
1740
+
});
1741
+
1655
1742
testWidgets(
1656
1743
'SnackBar has correct end padding when it contains an action with fixed behavior',
0 commit comments