#keys #internals #advanced
Keys! What are they good for?
The key parameter can be found on basically every widget constructor, but their use is less common. Keys preserve state when widgets move around in your widget tree. In practice, this means they can be useful to preserve the userβs scroll location or keep state when modifying a collection.
Keys! What are they good for?
The key parameter can be found on basically every widget constructor, but their use is less common. Keys preserve state when widgets move around in your widget tree. In practice, this means they can be useful to preserve the userβs scroll location or keep state when modifying a collection.
Medium
Keys! What are they good for?
The key parameter can be found on basically every widget constructor, but their use is less common. Keys preserve state when widgets moveβ¦
#isolates #async #advanced
Futures - Isolates - Event Loop
Single Thread, multi-threading, synchronous and asynchronous. This article explains the different code execution modes in Flutter:
π Dart is a Single Threaded language
π The Dart execution model
π MicroTask Queue
π Event Queue & Futures
π Async methods
π Multi-Threading & Isolates
Futures - Isolates - Event Loop
Single Thread, multi-threading, synchronous and asynchronous. This article explains the different code execution modes in Flutter:
π Dart is a Single Threaded language
π The Dart execution model
π MicroTask Queue
π Event Queue & Futures
π Async methods
π Multi-Threading & Isolates
Flutteris - Didier Boelens
Flutter - Futures - Isolates - Event Loop
Flutter - Single Thread, multi threading, synchronous and asynchronous. This article explains the different code execution modes in Flutter.
#performance #advanced #bestpractices
Performance best practices
Generally, Flutter applications are performant by default, so you only need to avoid common pitfalls to get excellent performance instead of needing to micro-optimize with complicated profiling tools. These best recommendations will help you write the most performant Flutter app possible:
π Controlling build() cost
π Apply effects only when needed
π Render grids and lists lazily
π Build and display frames in 16ms
Performance best practices
Generally, Flutter applications are performant by default, so you only need to avoid common pitfalls to get excellent performance instead of needing to micro-optimize with complicated profiling tools. These best recommendations will help you write the most performant Flutter app possible:
π Controlling build() cost
π Apply effects only when needed
π Render grids and lists lazily
π Build and display frames in 16ms
docs.flutter.dev
Performance
Evaluating the performance of your app from several angles.
#performance #bestpractices #advanced
Building performant Flutter widgets
This article is a part of series developed after the Flutter Material team worked on making the Flutter Gallery app more performant on the web. Some pro tips:
π Only build when necessary
π Only build what is necessary
π Check widget build counts
Building performant Flutter widgets
This article is a part of series developed after the Flutter Material team worked on making the Flutter Gallery app more performant on the web. Some pro tips:
π Only build when necessary
π Only build what is necessary
π Check widget build counts
Medium
Building performant Flutter widgets
This article is part of a series developed after the Flutter Material team worked on making the Flutter Gallery app more performant on theβ¦