Created
March 21, 2023 08:34
-
-
Save yuki2021/141832117bf4e7cf1730fbfed1d8a972 to your computer and use it in GitHub Desktop.
FlutterのWidgetテストでスクロールする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// スクロールする | |
final scrollableWidget = find.byType(SingleChildScrollView).first; | |
await tester.drag(scrollableWidget, const Offset(0, -5000)); | |
await tester.pumpAndSettle(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment