Changing boolean state with a button in dart

This is my first stack overflow post so please bare with me and give me constructive criticism when needed. I'm developing an app that needs to have two separat...

Flutter bool name = String its possible?

Hey i make a Favorite System with a bool to say if is favorite or not. But if the name of the bool is always the same it applies to all my entries! but e...

Dart / Flutter - cannot assign bool value from JSON response

Newbie to Dart/Flutter here struggling with problem while assigning bool valuse from JSON response - <code>bool error</code> is <code>null</code> and I'm getting:...

Flutter, setState() not working properly in Release but in Debug

I have a Stack which gets build inside of a FutureBuilder, part of the Stack is a ElevatedButton which is focusing to my current location on the map, which is also par...

flutter How to Get Bool value from firestore and change the button state

<a href="https://i.stack.imgur.com/ZQ4S7.png" rel="nofollow noreferrer">This is My Demo Data From Firestore How Can Retrieve the bool value</a>

Updating State of StatefulWidget from other StatefulWidget in Flutter?

i am trying to update the state of the animated switcher in the middle area. i am trying to do this using a setstate in the lower area. but it does not work. <ol>...

Im having issues trying to convert my StatelessWidget code..why?

I was trying to code a stateful widget on a statelessWidget class to put a bool and a stateState((), (show or hide password). So I followed some post which said that t...

Getting Bool State from Firestore in Dart

I am trying to get a bool value from Firestore when the app is being initialized: it returns True if it is like and False if it is not like. Ev...

Display document with variable true - Flutter Firebase

I have to show on the screen only the users that the ACTIVE variable is true. However I am not able to achieve this condition, it always displays all users registered...

How to count the switches that are toggled on or off in flutter?

For a simple flutter app which displays 3 types of photos (turtles, butterflies and birds) I have for each type one corresponding switch which either shows or hides al...

The argument type Function cant be assigned to the parameter type void Function(bool)?

<a href="https://i.stack.imgur.com/yOEXT.png" rel="nofollow noreferrer">enter image description here</a> <pre><code>import 'package:flutter/material.dart'; import...

Error in Flutter code type Null is not a subtype of type bool ?

I am creating a multi-paged app on flutter to To determine the time based on the location, but when the code is turned on, there's a problem on this page, I tried to f...

flutter - Future&lt;bool&gt; convert to bool

I have a future bool method and i want to use this method IconButton color. If i use below codes, i see a error message on my device screen <strong>type'Future' is not...

How to access boolean value of one file in another

I am new at flutter and building a project. I have two files naming distractor.dart and layout.dart. In distractor I use images which has a boolean value that keeps ch...

Flutter converting String to Boolean

I am having a <strong>String</strong> that i would like to convert to <strong>Boolean</strong> Below is how the string looks like <pre><code> String isValid = &quo...