Loading topic
pubspec.yaml, and use the flutter command line. You should also know that debug, profile and release builds differ. Here you learn what a Flutter app is made of, so you can tell which part to work on before you measure anything.6 min read--analyze-size. You do not need to know Gradle in detail.6 min readflutter build apk --analyze-size and open the resulting JSON file in the DevTools app size tool. Both were covered in the earlier chapters on measuring size. You should also be comfortable editing pubspec.yaml.7 min readflutter tool and read a Dart stack trace. You should also have used --analyze-size from the earlier chapter on measuring size, because you will use it to check the effect of each flag here.7 min readpubspec.yaml, use async/await and Future in Dart, and build a release app with the flutter tool. It also assumes you have already measured your app with --analyze-size, as covered earlier in this tutorial. Deferred loading is a tool for code that you hav6 min readasync/await. It describes the stages a launch goes through. The next chapter shows how to measure them with --trace-startup.6 min readasync/await. You will learn how to take a repeatable startup measurement, read the result, and cross-check it in DevTools.6 min readflutter run --profile --trace-startup output, which the previous chapter on measuring startup covered. It also assumes you are comfortable with async/await, Future, and the difference between awaiting a call and starti5 min readflutter run --profile, and read the Performance view in DevTools. It also assumes you know the earlier idea that the first frame has a time budget, and that work in main() delays it.6 min readawait per pull request. A budget plus an automated check turns "we should watch this" into a failing b6 min read