flutter

A collection of 78 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
flutter

Fixing `Error (Xcode): Signing for "GoogleSignIn-GoogleSignIn" requires a development team. Select a development team in the Signing & Capabilities editor. [project]/ios/Pods/Pods.xcodeproj`

Today my Flutter project started refusing to compile for iOS with the following errors: Error (Xcode): Signing for "GoogleSignIn-GoogleSignIn" requires a development team. Select a development team in the Signing & Capabilities editor. [project]/ios/Pods/Pods.xcodeproj Error (Xcode): Signing for "gRPC-C++-gRPCCertificates-Cpp" requires a development team. Select a development
1 min read
flutter

Fixing `GoogleSignIn 0x10461abdc -[GIDSignIn signInWithConfiguration:presentingViewController:hint:additionalScopes:callback:] + 228 (GIDSignIn.m:242)` in Flutter iOS

I recently started using flutterfire_ui's SignInScreen, and it was working great for Android and Web, but not iOS. For some reason, when I clicked on "Sign in with Google", it would crash the app, and throw this debug info: Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception
2 min read
flutter

Fixing `In plugin 'com.google.gms.google-services' type 'com.google.gms.googleservices.GoogleServicesTask' field 'intermediateDir' without corresponding getter has been annotated with @OutputDirectory.`

Today I tried to recompile a very old Flutter project. Besides migrating to Android 1.12, I had to upgrade the Kotlin library and Gradle like in https://www.wafrat.com/fixing-module-was-compiled-with-an-incompatible-version-of-kotlin/. But then I got a new error: Some problems were found with the configuration of task ':app:
2 min read