flutter

A collection of 85 posts
flutter

Fixing `Unknown flutter tag. Abandoning upgrade to avoid destroying local changes. It is recommended to use git directly if not working on an official channel.` when running `flutter upgrade`

This morning, flutter upgrade failed with an error message I have never seen before: % flutter upgrade Unknown flutter tag. Abandoning upgrade to avoid destroying local changes. It is recommended to use git directly if not working on an official channel. anhtuan@macmini flashcards % flutter --version Flutter 3.13.1 • channel
4 min read
flutter

Fixing `because every version of firebase_ui_localizations depends on flutter_localizations from sdk which depends on intl 0.18.0, firebase_ui_firestore >=1.0.1 requires intl 0.18.0.

Today my Flutter app started breaking with the following error: because every version of firebase_ui_localizations depends on flutter_localizations from sdk which depends on intl 0.18.0, firebase_ui_firestore >=1.0.1 requires intl 0.18.0. So, because [project]  depends on both intl ^0.17.
3 min read
flutter

Fixing EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK in testWidgets with FutureBuilders

I have a FutureBuilder that checks for errors and displays an error message. I wanted to write a test to check the rendering of the error, but if I passed a Future.error('some error'), the test would fail with this message: ══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════ The following
1 min read