Questions tagged [flutter-state]

369 questions
-1
votes
1 answer

List on HomeScreen not updating after editing an item in TaskScreenin Flutter

I am trying to do a todoapp with Provider but it is not working as expected. In my HomeScreen, I have a list of tasks, which is being stored in the provider. To edit a task, I go to another screen, TaskScreen, where I submit a form and, ideally, it…
bringand1
  • 103
  • 1
  • 8
-1
votes
1 answer

Using Getx to update a Listview Builder state

I'm trying to manage the state of a button in between switching bottom tabs, but each time I leave one tab to another the state of the button is returned to the initial state here are my code snippets: //this is the function returning the list of…
-1
votes
1 answer

Flutter InkWell widget color not updating after Tap

I am having trouble coding a function. In my app, a quiz has been added, the quiz functionality works, the quiz data is retrieved from a server and delivered as JSON data. I have a problem where my app does not show whether a user's answer is…
-1
votes
1 answer

Flutter web - Set state based on url

I am developing a flutter website with a persistent navigation bar on top that displays the current page the user is on, by adding a border around the title of the active page as shown below. I am using url navigation on the website, so the user…
-1
votes
3 answers

How to add markers to a flutter google map after the map has been created and change the camera position?

I am new to Flutter and I have created a google map using the flutter_google_maps package. I have the following code in my parent widget, SizedBox( child: _showFindHouseModal ? FutureBuilder( future: _locationDataFuture, …
-1
votes
1 answer

What is the difference between the following var initialization positions in a StatefulWidget?

I was wondering about where to declare and initialize variables in the case of a StatefulWidget. There seem to be a couple of ways to do it, but are there differences, any guidelines, or best practice approaches for it? I created the below sample,…
Mena
  • 3,019
  • 1
  • 25
  • 54
-2
votes
2 answers

Why setState is not working, is there any mistake in my code?

I tried to show a circular progress indicator while loading when clicked on the elevated button here I used setState to update the state, but somehow state is not getting updated. I didn't understand why it's not getting updated any mistake in the…
shanmkha
  • 416
  • 1
  • 8
  • 27
-2
votes
1 answer

Is this a good state management option for a backend database/repository to state class?

Custom backend state management question. I think this is a little subjective but I do want an objective side to this such as, why coud this be bad, or good and can this be simpler and better than any other state management option such as riverpod,…
RobbB
  • 1,214
  • 11
  • 39
-2
votes
1 answer

setState is not updating UI in Flutter

I have a dialog box which is a stateful widget with multiple tabs wrapped inside Animated Switcher. Inside it I have a button which on clicked calls a function switchPage() which has a switch statement with each case setting the state of Widget?…
1 2 3
24
25