Flutter: Why do TweenAnimationBuilder and AnimatedBuilder have a child argument?

Why and when to use the child widget argument to optimize Flutter performance when working with TweenAnimationBuilder and AnimatedBuilder. https://codewithandrea.com/articles/flutter-animated-builder-child-widget-argument/

Created 4y | May 16, 2021, 9:21:36 AM


Login to add comment

Other posts in this group

December 2024: Flutter 3.27 Release, Architecture Case Study, Dart Microbenchmarks, and Union Types

Also included: Dart 3.6, Flutter AI Toolkit, Flutter in Production livestream, and the latest from Code with Andrea. https://codewithandrea.com/newsletter/december-2024/

Dec 23, 2024, 3:10:09 PM | Code with Andrea
Digits Separators in Dart 3.6

Since Dart 3.6 (Flutter 3.27), you can use _ as a digits separator. This works with integers and floats, as well as custom formats (hex, scientific). https://codewithandrea.com/tips/digits-separators-

Dec 20, 2024, 1:10:06 PM | Code with Andrea
Color API Deprecations in Flutter 3.27

To support the latest wide gamut color spaces, Flutter 3.27 has deprecated some properties and methods in the Color class. https://codewithandrea.com/tips/color-deprecations-flutter-3-27/

Dec 20, 2024, 1:10:05 PM | Code with Andrea
The ListWheelScrollView Widget

If you need to select between a small list of values but have limited vertical space, you can use a ListWheelScrollView. https://codewithandrea.com/tips/list-wheel-scroll-view/

Dec 20, 2024, 1:10:05 PM | Code with Andrea
Text Style with Tabular Figures

If you want to render fixed width (monospaced) digits, set FontFeature.tabularFigures() inside your TextStyle. https://codewithandrea.com/tips/text-style-tabular-figures/

Dec 18, 2024, 2:40:06 PM | Code with Andrea
Color API Deprecations in Flutter 3.27

To support the latest wide gamut color spaces, Flutter 3.27 has deprecated some properties and methods in the Color class. https://codewithandrea.com/tips/color-deprecations-flutter-3.27/

Dec 18, 2024, 2:40:06 PM | Code with Andrea
Digits Separators in Dart 3.6

Since Dart 3.6 (Flutter 3.27), you can use _ as a digits separator. This works with integers and floats, as well as custom formats (hex, scientific). https://codewithandrea.com/tips/digits-separators-

Dec 13, 2024, 11:50:04 AM | Code with Andrea