mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() By default BoxScrollView (and hence ListView, which is a subclass) padding is the media padding along its scroll axis in order to avoid placing list items within areas where user interaction should be minimised -- e.g. under the status bar, or in and around the iPhone X notch in landscape mode. In cases where a list item should occupy the padding area, developers should set the ListView padding to EdgeInsets.zero so as not to pick up the default media padding. For widgets inside the drawer that should avoid safe areas, developers can add a SafeArea widget. |
||
---|---|---|
.. | ||
android | ||
ios | ||
lib | ||
test_driver | ||
pubspec.yaml | ||
README.md |
complex_layout
Scrolling benchmark
To run the scrolling benchmark on a device:
flutter drive --profile test_driver/scroll_perf.dart
Results should be in the file build/complex_layout_scroll_perf.timeline_summary.json
.
More detailed logs should be in build/complex_layout_scroll_perf.timeline.json
.
Startup benchmark
To measure startup time on a device:
flutter run --profile --trace-startup
Results should be in the logs.
Additional results should be in the file build/start_up_info.json
.