Let's build something together

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