Class MockFirebaseAuth has no instance method createUserWithEmailAndPassword with matching arguments

I'm not sure how to get passed this error. I type in an email that is not associated with <code>MockUser</code> then it goes to the <code>RegisterFormLogin</code> widg...

Dart / Flutter: Navigate (with Navigator) between Pages without context (so no Navigator.push?)

In my App I have 6 different pages. Theres 1 page called FavouritesPage, where user pickes favourites are listed. They are displayed by a column, which use...

Testing BLoC that uses a reactive repository returning a Stream

I'm testing my Flutter mobile application. I'm using <code>flutter_bloc</code> as state management solution and <code>bloc_test</code> to test my BLoCs. My appl...

How best to stub/mock rest API calls in Flutter Integration tests

I have a Flutter app that displays data after the user logs in. I have unit and widget tests and now would like to write my first <a href="https://flutter.dev/docs/coo...

How do i use FloatActionButton in whole application

<blockquote> I have this code and run it in one of my pages but I want to use this part of code in whole my application, but i don't know how? I don't want to use Sc...

Flutter Update 2.0.6 Issues with previous libraries like Expanded , ListView, etc

Recently I have updated my flutter to 2.0.6 version which it says its the latest version. But it shows lots of errors on my project for example I was using <code>ListV...

Separate development from deployment assets in Flutter

I am using some assets during my development (fake API responses and random images), and for that, I am loading some assets.<br> Obviously I do not want those assets t...

LateInitializationError: Field myfuture has not been initialized

The issue that I am facing is in future builder in flutter.When opening the page first time the data is loaded successfully but when I go to a different page and then...

Is there a way to render all frames when running flutter integration tests?

When running Flutter integration tests, it only renders frames when necessary. This makes sense, since the tests should run as fast as possible, however it makes it v...

Why wont my Dart Video App code compile?

I'm working on a Flutterflow project and when I attempt to compile my widget inside of the custom widget section it returns multiple errors. Here is the code directly...

Widget test a widget which uses WidgetsBinding.instance.addPostFrameCallback()

I'm trying to do a widget test in flutter to one widget which uses <a href="https://api.flutter.dev/flutter/scheduler/SchedulerBinding/addPostFrameCallback.html" rel="...

Flutter integration tests: How to read values from a Text

I am writing a integration test for a flutter mobile app. There's a requirement to check whether a calculation is done correctly. So I want to read value...

Flutter method was called on null?

When i call the method from the same class then it works perfectly but when I made the method in separate class it gives me an error. The method 'add' was call...

How to make Flutter tests ignore layout overflow messages?

I have some widgets inside of a fixed size SizedBox. These widgets don't overflow the SizedBox. However, when I'm running tests, they do overflow, and the tes...

How do I stub a function that does not belong to a class, during a widget test?

I am creating a flutter app that uses the native camera to take a photo, using the official flutter camera package (<a href="https://pub.dev/packages/camera" rel="nore...