Error: Null safety features are disabled for this library in Flutter

I added non-nullabe in pubspec as well. I don't want to change my SDK version, cuz I have already been using it for other dependencies and it will cause errors if I ch...

Flutter Futurebuilder with List does not work

I have a Futurebuilder with a Future function that returns a List with image urls from Firebase storage inside. <pre><code> child: FutureBuilder( future: getI...

how to avoid crash when data is missing and throw exeption in flutter

here is my code to catch data from web: it crashes with multiple kind of exeptions each time, i want to show the error on screen but do not crash the app and te...

The error handler of Future.catchError must return a value of the futures type

I got this error message any help!! this code worked well recently Invalid argument(s) (onError): The error handler of Future.catchError must return a value of...

My android studio cant download the emulator please helpout

Packages to install: - Android Emulator (emulator) Preparing Install Android Emulator (revision: 31.2.10). Failed to read or create install properti...

Flutter [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: FormatException: Unexpected character (at character 1)

In my application I am trying to login user through API, but I am getting the following error. <pre><code>E/flutter (14103): [ERROR:flutter/lib/ui/ui_dart_state.cc...

Flutter - Async file reading exception handling

I am new to dart/flutter and a litte confused by the <strong>async-await</strong> flutter exception handling in this case. So basically i have this function tha...

The argument type Container Function(BuildContext, int) cant be assigned to the parameter type Widget Function(BuildContext, int, int)

I try to use <code>CarousellSlider.builder</code>, but I get an error. I used the code from the example on the pub.dev page (<a href="https://pub.dev/packages/carousel...

FLUTTER FIRESTORE: updating a boolean field: type String is not a subtype of type DocumentReference

In my flutter app, when a checkbox is clicked to indicate a completed task, ideally, i need that to reflect in the firestore database. There is a collection called 'to...

i using a provider package to get product details from firebase then i facae error from firebase

i make this model to get product image,name,price from firebase but i'm facing exception error(FirebaseException ([cloud_firestore/permission-denied] The caller does n...

Flutter FirebaseAuthException : Display custom error messages

I am struggling to to show my custom error messages during login/sign up. The error messages that are showing up are the default ones coming from Firebase. I need to d...

Cant execute flutter doctor command in flutter console

<strong>When I run flutter doctor command in flutter console I'm getting this error. Can someone please help me out. I tried running in C drive used both the combinati...

failed `assert` does not throw `AssertionError` in dart with null-safety, any workaround?

as soon as I started transitioning to <code>null-safety</code><br /> I encountered this problem:<br /> running the test below <pre class="lang-dart prettyprint-ove...

is their a way to key a error message that is thrown from a text box input in flutter for my integration tests

im having some issues with my integration tests in flutter on how i can check if an error pops up when wrong value is input idk how to check for it any help would be m...

(The argument type String? cant be assigned to the parameter type String) What is the difference between String and String in dart?

lately i always get errors like: (The argument type 'String?' can't be assigned to the parameter type 'String') or (The argument type 'File?' can't be assigned...