Also included: Completers, Fragment Shaders guide, how to store data in secure storage, Mix and other Flutter UI packages, upcoming conferences. https://codewithandrea.com/newsletter/august-2024/
Since Flutter 3.24, a new Rebuild Stats feature is available on the DevTools performance page. Use it to spot widgets that rebuild too often. https://codewithandrea.com/tips/devtools-performance-rebuild-stats/
Since Flutter 3.24, a new CarouselView widget is available. You can set the children's size with itemExtent and shrinkExtent, and use it with any widgets as children. https://codewithandrea.com/tips/carousel-view-widget/
As of Flutter 3.24, a new "pub unpack" command is available. You can use it to download a package locally and easily explore its source code. https://codewithandrea.com/tips/dart-pub-unpack-command/
OverflowBar makes it easy to layout your widgets in a row unless they overflow the available horizontal space, in which case they're arranged as a column. https://codewithandrea.com/tips/overflowbar-widget/
When you call a method that returns a Future, you have to choose between using await, unawaited, and ignore. Here's an explanation. https://codewithandrea.com/tips/futures-await-unawaited-ignore/
The humble log function has many arguments that can be used to customize the appearance of your logs. Here's how to use them. https://codewithandrea.com/tips/log-function-args/
When tracking analytics events in your code, consider using unawaited
from dart:async
(analytics calls should be fire & forget).
https://codewithandrea.com/tips/use-unawaited-analytics-calls/
--dart-define-from-file supports both .env and json files. Here's how to use each variant. https://codewithandrea.com/tips/dart-define-from-file-env-json/
By doing some string manipulation on the current stack trace, you can extract the current method name (useful for logging). https://codewithandrea.com/tips/get-method-name-stack-trace/