SOLVED | Flutter - A ValueNotifierbool was used after being disposed

I received the error of `A ValueNotifier was used after being disposed. Step to reproduce the error: <ol> <li>I navigate to <code>menu.dart</code> from <cod...

How can I disable these messages of dart on the VSCODE?

I want help to disable the messages of dart in de VScode as the example below: <img src="https://i.stack.imgur.com/I3Ik5.png" alt="Messages of dart in the VSCODE" />.<...

How to set custom height of a child in ListView.builder?

I have several items in a list view which are same in size but I want to show one text button at the end, I want the splash of the text button, to limit only around th...

how to disable the timer in flutter using dispose

I use a timer to count down. I feed seconds into the timer and the countdown begins. The timer works, but the problem is that when I change the page, I get an error th...

Remove \n from a given strings in dart

Given a string <pre><code>String item = 'Hello\nWorld' </code></pre> I want a function that removes <code>\n</code> from the given string<br /> Something like t...

Its showing only its background componen,why not body component?

when i press login ,it triggered this body file,but it only show background png. It's not showing content of body file. background.dart <pre><code>class Log...

Flutter dart async await not working as expected

I am trying to check the internet connection of the mobile device. I am using below code to check the connectivity. <pre><code>import 'package:flutter/material.dar...

Firebase background message handler in flutter spawns duplicate isolate and runs the app twice

I have below packages in my <code>pubspec.yaml</code> <pre><code>firebase_core: ^2.2.0 firebase_messaging: ^14.1.0 </code></pre> And in my <code>main.dart</cod...

How can a nested switch be avoided in Flutter/Dart?

I'm looking down the barrel of a nested switch statement. I would really like to avoid this rats nest. I know in other languages there are other funky ways of avoiding...

emoji_picker_flutter is not showing

I have a problem. I would like to use <a href="https://github.com/Fintasys/emoji_picker_flutter" rel="nofollow noreferrer">emoji_picker_flutter</a>. This should be dis...

can I use bool as path parameter (PathParam) using auto route in flutter, and if so, how?

I have a payment confirmation route that takes a path parameter of true or false (true when payment was successful and false when unsuccessful). my app should work on...

type (dynamic) = Category is not a subtype of type (String, dynamic) = MapEntrydynamic, dynamic of transform Flutter

So I tried to consume the API and I keep getting this error type '(dynamic) =&gt; Category' is not a subtype of type '(String, dynamic) =&gt; MapEntry&lt;dynamic, dyna...

How to connected String to futur of Futurbuilder with flutter?

I try to use a FuturBuilder to build a widget after that my initStat load data from firebase. At the init I call a function to receive url from firebase <pr...

Last element is hidden behind BottomAppBar with ReorderableListView

I'm using a ReorderableListView builder in combination with a Bottom App Bar with a FAB. I set extendBody because I want the FAB notch to be transparent when scrolling...

Cant access to my firestore collection via flutter app

I'm developing a flutter app that requires registration. so I used Firebase to auth and store. the authentication works fine. the user can sign up/in and sign out usin...