Let's build something together

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