Loading topic
Intermediate · Mid: 14 chapters · 31 min read. States assumed prerequisites
Start readingpubspec.yaml. You should also be comfortable using the command line and understand asynchronous Dart code.pubspec.yaml, and use basic Dart and Flutter commands. You should also know that Flutter supports debug, profile, and release build modes.pubspec.yaml, and distinguish debug, profile, and release modes. This chapter focuses on measuring Android app size before deciding what to remove or replace.pubspec.yaml, and use basic Dart. The goal is to reduce shipped bytes without lowering the visual quality that users need.pubspec.yaml, and distinguish direct dependencies from transitive dependencies. This chapter focuses on measuring the cost of packages before deciding whether to keep, replace, or remove them.async and await, and how to build a Flutter app. Deferred loading is useful when an app has features that most users do not open during startup, such as reports, administration, help, or advanced editing.runApp, widgets, asynchronous code, and the difference between debug, profile, and release modes. It also assumes that you can run Flutter commands from a terminal.async code, and know the difference between debug, profile, and release modes. This chapter uses profile mode because it provides performance data that is closer to release mode while keeping debugging and timeline tools availasync and await, and how to run an app from the command line. It also assumes that you have measured startup in profile mode, as described earlier.async and await, and run commands with the flutter tool. It also assumes that you understand that Flutter normally builds widgets and handles input on one UI isolate.async and await, and recognize the difference between work done by the operating system and work done by Flutter. The goal is to improve the time users perceive, not only the measured time to the first Flutter frame.pubspec.yaml, and use basic asynchronous Dart code. This chapter focuses on repeatable checks, not on finding the first optimization.