This image shows flutter app selection controls
But I want selection controls like Gmail.
How can I made it.
I'm building multiple form pages in one class, I create 4 widgets each widgets is represent a page with text fields or cards or radio buttons.
and I create a method to switch between pages when. I press next.
This works as expected ^^
My issue UI inside first page is not refreshed unless I press ctrl + S,,
inside the first page of the form, I have created custom radio buttons they're simply cards.
and when tap on any card, there's set state method, to highlight the selected card by changing its style..
This works perfectly! at the beginning when I call the first page 1 directly as a child inside the scaffold..
However, after I created the method to switch between pages.. The UI in page 1 does not refresh..
I will put a picture..
Picture of the method to switch pages
Picture of pages widgets
picture of scaffold and how I call the widget pages
this is a picture of custom radio button which has cards, the card color change if it's selected
I tried many ways! but it didn't work..
Is what I'm trying to do correct? I'm a beginner in flutter
& I have a project to submit :(
I couldn't find a solution in google,,
Try making the widgets StatefulWidget and call setState((){}) inside the widget when you tap on the cards.
So here's what I did ^^
because the issue was just in page 1, so I in the scaffold I added page 1 as it's child directly without Switch page method..
Then inside page1, a button that will navigate to another class,
the second class has exactly the same scaffold and app bar as previous page.. But, in it's child I added calledWidget which switch between pages from 2 to 4 in my case ^^
So short words, I put page 1 in a separate page and the rest of the pages in a switch method in separate class
it works, but I hope I don't find any difficulties When saving values & integrating API to post the values
what you think?
I'm working on a flutter application, I want to show a dialog above button if clicked as this image:
How can I do it?
Hi I’m a beginner in flutter and I have an app that have a tab bar view and one of the pages have a bottom notched app bar it have children:-a floating action button and other two material buttons,the floating action button navigates to a page with a form and when the form is filled I want it to navigate to the first material button page and the form has a counter so the form will only stay at the first material button page only until the counter is zero then it will be moved to the second material app button page.And I want this process to loop as long as the user create the form and if there is no created form I want the first material button page to display something like you don’t have anything yet.Please help it would mean a lot
I am writing mobile app using flutter and redux.
I have a screen with list of Objects. After tapping one object, I want to navigate to screen where I can edit that object. For navigation I use routes and navigation reducer and middleware with push/replace actions. What would be the best approach? Should i store tapped object in my AppState? Should I navigate to editing screen without dispatching action?