Flutter: Google IO 2024, the bullet list recap
I love Flutter, you love Flutter, last week was the Google IO 2024 and you want a quick recap. You are in the right place.
Last week I wrote a quick LinkedIn post about where to find information on Flutter news at the Google IO 2024.
In this post, I mention a Youtube Playlist with all the Flutter videos in the Google IO.
TL;DR
10 videos, ~6h30 of content.
Time is precious, here is a bullet list a recap for each one of them (almost).
Developer Keynote (cross platform)
- Project IDX is open for everyone in beta (cloud base IDE).
- Checks is open in beta (a tool to review code and legals of your app).
- Flutter 3.22 is live.
- Dart 3.4 is live.
- WASM in Flutter Web is in ~production.
Also but not Flutter linked
- Firebase does SQL (or connects with).
- Firebase does AI.
Google Keynote
- Nothing interesting about Flutter here.
How to build Adaptive UI with Flutter
- SafeArea is god mode, add it in first child of Scaffold.
- GridView for list display change the
crossAxisCount
based on width of content, consider using SliverGridDelegateWithMaxCrossAxisExtent. - Handle screen orientation please, use MediaQuery, but is it right (not
MediaQuery.of().x
butMediaQuery.xOf()
for example). - LayoutBuilder is a good way to get container constraints.
- Follow the Material guidelines.
- Abstract > Mesure > Branch principle.
- Break down your widgets to the smaller atomic possible ones.
- Flutter adaptive doc is available.
What is new in Flutter
- Google Earth (android, ios, web) is written in Flutter.
- LG webOS is written in Flutter.
- Universal Destinations is written in Flutter.
- Flutter is the most popular cross platform framework in the world.
- Gemini API in your app with Google AI Dart SDK.
- Flutter is a good choice for making games with Flame.
- Impeller is on road to the moon (compared to Skia).
- Macros are available (~you know) for json and data class.
- Web Assembly is stable for Flutter web (and ~twice perf as JS).
Building picture perfect camera experiences in Flutter with CameraX
- Add camera to your flutter app using CameraX on Android.
- Use https://pub.dev/packages/camera_android_camerax.
- Simpler, Faster, Better (but only works on Android and no fallback for other platforms) → Use camera with it.
The endorsed
camera_android_camerax
implementation of the camera plugin built with CameraX has better support for more devices thancamera_android
, but has some limitations; please see this list for more details. If you wish to use thecamera_android
implementation of the camera plugin built with Camera2 that lacks these limitations, please follow these instructions.
No more broken links: Deep linking success in Flutter
- Deep Link doc available.
- Please use Universal Links and App Links (for safety reasons).
- Go router is a good choice for routing.
- Use Deep Linking Validator in tools, it will do almost all the work for you.
Gemini API and Flutter: Practical, AI-driven apps with Google AI tools
- Google AI Studio is a good way to start.
- Use google_generative_ai.
- A quick start is available.
How to build a physics based game with Flutter and Flame’s Forge2D
- The codelab is availabe online and there is nothing much to say, the video is a run of the codelab.
Build generative AI agents with Vertex AI Agent Builder and Flutter
It is more a talk about AI than a talk about Flutter
- Ask the model to answer in a json like format.
- Firebase vertexai.
- Outdated data ? Connect external datasources with AI Agents
- There is a package for chat ui.
- Flutter is great choice for responsiveness and adaptive ui (see the section How to build Adaptive UI with Flutter).
Conclusion
Here we are, this was a very quick, bullet list recap, of all the videos on the playlist.
If you find them interesting then do watch the videos.
Try Flutter, use it, run it, love it.
Need to share both UI code and business logic across platforms? Try Flutter!
(And if you liked this post, share it ?)
EDIT 24 May 2024, Google published this video on Youtube, which is a good take away too