Flutter Widget Tests with NetworkImage

I have a Widget with NetworkImage (so far with hard-coded url). I would like to widget test this Widget, but I got 404 when I run widget test (url is 100% valid). How can I make NetworkImages load...

Allow permission dialog in Flutter end-to-end testing?

In Flutter end-to-end testing, a permission is to be allowed during the test. driver.tap(find.text("ALLOW") does not work. How to click "ALLOW".

How do I track Flutter screens in Firebase analytics?

I have a Flutter app and I'm testing Google Analytics for Firebase on Flutter. I wanted to see the routes our users (well, me for now) are visiting. I followed the setup steps in...

flutter test fails. compiler error getter not found 'main'

I'm trying to run flutter test using the terminal and i receive the following error. the following file...

Unit testing in Flutter passing BuildContext

I have a method in a Dart class, which accepts BuildContext parameter, as follows: class MyClass { <return_type> myMethodName(BuildContext context, ...) { ... doSomething ...

How to get "Apps Instance Id" in Flutter

i want to setup firebase inapp messaging on my flutter apps. first, it need FirebaseInstanceId as explained here, so i can test send message to my device. However the document does not tell more...

How to dispose of a Stream controller Flutter

I was testing on how to use streams and stream controllers, using a basic Bloc pattern but I still don't understand on how to dispose of them properly whether using it to update the UI or...

How to see debug console when app installed through apk in flutter?

I am able to see debug console in the terminal when I am run the command flutter run but when I run the command flutter build apk --split-per-abi it's given me two application so when I am...

I/flutter (30720): SocketException: OS Error: Connection timed out, errno = 110, address = 192.19.170.13, port = 47763

I'm using a real device (not an android emulator) backend: MongoDb Atlas, API: strapi-beta, getting this error: I/flutter (30720): SocketException: OS Error: Connection timed out, errno = 110,...

Gradle threw an error while downloading artifacts from the network .. Exception: Gradle task assembleDebug failed with exit code 1

I just started with app development with flutter, but am not even able to run the test app. This is what come on console : Launching lib/main.dart on AOSP on IA Emulator in debug mode... Running...

How to convert seconds to minutes in Dart?

I'm learning Dart & flutter for 2 days and I'm confused about how to convert seconds (for example 1500sec) to minutes. For studying the new language, I'm making Pomodoro timer, and for test...

Unhandled Exception: Cannot hit test a render box with no size

so I am trying to recreate a UI template. This is the code. I'm trying to add another Horizontal GridView by calling RecentlyViewed() but upon reloading it cannot render. I don't know the way to...

Firebase Firestore is failing over wifi on physical device with error: Could not reach Cloud Firestore backend

When trying to get a document from Firestore, if the device is connected through Wifi the connection fails with the following error message: W/Firestore( 4903): (21.4.3) [OnlineStateTracker]:...

Invalid `Podfile` file: cannot load such file. /flutter/packages/flutter_tools/bin/podhelper

When I tried to test flutter project with a simulator after upgrading flutter, this error came up. Launching lib/main.dart on iPhone 11 Pro in debug mode... Running pod install... ...

Cannot open/read local files in test. Throws FileSystemException: Cannot open file, path

Hi I am trying to read a json file in my test class. test( 'should return a valid model when the JSON is populated with images', () async { // Given File file = new...

How to get firebase installation auth token in flutter app?

I'm creating Firebase Remote config experiment with A/B testing for my Flutter app. For validating the experiment on test device I need to get Firebase installation auth token that associated with...

How to solve flutter web api cors error only with dart code?

It seems like CORS error is well-known issue in the web field. But I tried flutter web for the first time ever and I faced critical error. The code below worked well in app version when it was...

AudioPlayers does not work on iOS | Flutter plugin

I am creating a Flutter plugin. Currently, the code: Synthesises an String into an audio file Gets the path to the file Plays the audio file using audioplayers When I run the application in...

Flutter Web Sign in with Apple returning unknown exception

I am trying to implement Sign in with Apple for my Flutter web-only project. I have thoroughly followed the instructions for the web implementation in the FlutterFire documentation...

firebase : CONFIGURATION_NOT_FOUND

i work on the auth for my flutter app with firebase and i have an erro with the creation of a user, with the function createUserWithEmailAndPassword(email: mail, password: password); and...

flutter error: This widget has been unmounted, so the State no longer has a context (and should be considered defunct)

when I clicking on login button when my mobile number is wrong then open one error dialog box after that when I clicked okey on dialog box then i got this error. I got this message This widget has...

error: Undefined name 'context' in flutter

I am a beginner with flutter, I had just started a few days ago. I want to go from one page to another page . But when I use the navigator it shows an error. I've tried to solve it using some...

'Null' is not a subtype of type 'Future<Either<Failure, NumberTrivia>>'

I am implementing the flutter project in TDD Clean Architecture by following this video: https://www.youtube.com/watch?v=lPkWX8xFthE&t=1s my code: class MockNumberTriviaRepository extends Mock ...

Flutter (2.5) - A splash screen was provided to Flutter, but this is deprecated

I am new to flutter and recently tried to develop a test app for learning sake with latest version Flutter 2.5. By looking at some tutorial online, I have added flutter_native_splash: ^1.2.3...

Null safety migration error: package has unmigrated dependencies. But all my dependencies declare support for null-safety

Im trying to migrate dart null safety but I get the following error when I run dart migrate Bad state: Error: package has unmigrated dependencies. Before migrating your package, we recommend...

Flutter integration testing: can I start the test on any page? How?

So I am testing an app that has multiple pages. Sometimes, I just want to start a test from a page of choice. However, I can't figure out how to do it. Everywhere I look, everyone always starts...

Flutter performance issue with Lottie animation

I have noticed a couple of things when integrating Lottie animations in a flutter. And I want to know how can we improve the performance with Lottie in a flutter The Test is done on One Plus 7T...

Missing firebase_options.dart file in course "Get to know Firebase for Flutter"

I am using the flutter course "Get to know Firebase for Flutter" from https://firebase.google.com/codelabs/firebase-get-to-know-flutter#4. I am in step_02 and I have added the following...

Convert GPS Coordinates to Match Custom 2d outdoor layout Image

I don't know if this is possible, but I am trying to take the image of a custom outdoor football field layout and have the players' GPS coordinates correspond to the image xand y position. This...