The CarouselView Widget

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/

The dart pub unpack command

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/

The OverflowBar Widget

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/

Futures: await vs unawaited vs ignore

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/

Useful arguments in the log function (from dart:developer)

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/

Use unawaited for your analytics calls

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/

How to use --dart-define-from-file with .env and json files

--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/

Get the current method name from the Stack Trace (Hack)

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/

July 2024: Flutter CTO Report, FlutterCon Takeaways, Interviews from Google I/O, Rewriting Freezed with Macros

Also included: Code Push with Flutter, Flutter adaptive theming guide, building an enterprise mobile application with 2.3M lines of code. https://codewithandrea.com/newsletter/july-2024/

Hugeicons (4,000 stroke Flutter icons)

The hugeicons package was recently released, featuring a collection of over 4,000 stroke Flutter icons. https://codewithandrea.com/tips/hugeicons-flutter-stroke-icons/


Члены



Поиск