@@ -271,7 +271,7 @@ void main() {
271
271
// Ensure the text field has not yet scrolled.
272
272
var textBottom = tester.getBottomRight (find.byType (SuperTextField )).dy;
273
273
var viewportBottom = tester.getBottomRight (find.byType (SuperText )).dy;
274
- expect (textBottom, lessThan (viewportBottom));
274
+ expect (textBottom, lessThanOrEqualTo (viewportBottom));
275
275
276
276
// Scroll down to reveal the last line of text.
277
277
await tester.drag (find.byType (SuperTextField ), const Offset (0 , - 1000.0 ));
@@ -289,7 +289,7 @@ void main() {
289
289
// Ensure the text field has scrolled back to the top.
290
290
textBottom = tester.getBottomRight (find.byType (SuperTextField )).dy;
291
291
viewportBottom = tester.getBottomRight (find.byType (SuperText )).dy;
292
- expect (textBottom, lessThan (viewportBottom));
292
+ expect (textBottom, lessThanOrEqualTo (viewportBottom));
293
293
});
294
294
295
295
testWidgetsOnDesktop ("multi-line is vertically scrollable when text spans more lines than maxLines" , (tester) async {
@@ -313,7 +313,7 @@ void main() {
313
313
// Ensure the text field has not yet scrolled.
314
314
var textBottom = tester.getBottomRight (find.byType (SuperTextField )).dy;
315
315
var viewportBottom = tester.getBottomRight (find.byType (SuperText )).dy;
316
- expect (textBottom, lessThan (viewportBottom));
316
+ expect (textBottom, lessThanOrEqualTo (viewportBottom));
317
317
318
318
// Scroll down to reveal the last line of text.
319
319
await tester.drag (
@@ -339,7 +339,7 @@ void main() {
339
339
// Ensure the text field has scrolled back to the top.
340
340
textBottom = tester.getBottomRight (find.byType (SuperTextField )).dy;
341
341
viewportBottom = tester.getBottomRight (find.byType (SuperText )).dy;
342
- expect (textBottom, lessThan (viewportBottom));
342
+ expect (textBottom, lessThanOrEqualTo (viewportBottom));
343
343
});
344
344
});
345
345
}
0 commit comments