PersistentWidget not staying between Navigations - flutter

I'm new to Flutter and I'm making a game just for fun, and I have a problem, I want a menu in the bottom of the screen to navigate between screens, so I made this:
enter image description here
enter image description here
Okay, this is my main:
enter image description here
When I start the game, this is what you see:
enter image description here
Ignoring the overflow problem, we can see the menu that I want to keep between navigations, but, when I actually Navigate to another class, the menu doesn't stay,
this is the way I make all the classes:
enter image description here
im really new to flutter so I dont know where to start looking for the problem, I guess the way I make the classes overwrite the initial builder and send just the class body, ignoring the PersistentWidget I made, but I really really dont know
I tried changing the builder, the context in all the classes, but I really dont know where the problem is

Related

How create change beackround by uesrs?

Good afternoon everyone.
Please help me to solve the issue.
I need to make it so that the user can change the background on their own, based on the options I suggested. The background will change only on one screen and for the background I decided to choose images.
That is, going to the quote screen, for example, the user can click on the button and a list of available pictures for changing the background will appear for him to choose from.
I've been looking for how to implement such an idea for the third day already and I can't find anything, please help!

Android - Show Back Button from XML

Before I begin, I want to mention that I've found a million answers showing how to do this from code, which involves setDisplayHomeAsUpEnabled(true) from your Activity. However, what I have not been able to find is a way how to do it from XML. (I would like to hide as much UI code in the XML files as possible).
One article I did find is this, which states
Step 3: Specifying the parent activity name in the AndroidManifest.xml adds the Back-Button arrow
and Click-action. Tapping on the back-arrow takes us to the Parent
Activity i.e Home Screen.
which doesn't work for me (the Back Button doesn't appear). I've followed all the steps in the article.
Does anyone know how to do this via xml? Is it even possible?
Yes, it's possible but still, you have to set the listener in java code. You can create a custom toolbar view and add a button to it. Then create a button in the java file and set the CilckListener.
Or You can use the default toolbar and do setDisplayHomeAsUpEnabled(true) from your Activity.
We usually make a custom toolbar, suppose you need a search bar in the toolbar then what you will do? So try to make an xml then use <include> tag in xml. You can search youtube. Follow the channel CodingInFlow, that guy explains very perfectly. If you don't understand what I am saying then understand the basics first, it will help you learn faster.

Widgets of type PopoverMenu need placeholders to add children

I'm trying to make an app in Glade and Builder using Vala, and I've gotten stuck while making the menu. Basically, what I want is the button in the titlebar with three lines, and when you click it, it shows a menu. I know how to do this with a regular Popover, but I want to use GtkPopoveMenu because it fits better with all of the other apps.
So I double-clicked on the grey Glade logo in the background, and clicked GtkPopoverMenu. Then, when I double-clicked on that and tried to add a GtkBox, I got a dialog saying 'Widgets of type Popover Menu need placeholders to add children.'
When I look in the XML file, there is an empty <placeholder/> tag.
Does anyone have an idea what's going on, or how to add these widgets?

FadeInImage does not what I expect it to when filtering

This might be a bug but I'm not sure.
I'm trying to make a list of users in the app that I'm making. With to the left of all the users a picture of that user. Everything goes well when in loads in. The users that have a picture get them loaded in. The users that don't have one keep a placeholder image. So far so good.
But when I start filtering the records it gets messy. I have a search bar at the top. But when I start searching. All the names are still correctly displayed (the ones that are within the range of the search) but the images don't correspond with the correct users any more.
Please explain if I'm doing something wrong. But this might be a bug because this does not happen when I use the normal Image class. Only when I use the FadeInImage class
Underneath two screenshots to explain my problem. The first screenshot is when I boot the app. The second is after I pressed the button. Notice how the error.jpg url is standing next to the working image in screenshot 2.
I made a small example project to make it easy to reproduce this.
To reproduce, wait for the top image to load in. The second one will 404 but that is intended so it keeps its placeholder and after that click the button. You will see the 404 url next to the picture that was actually loaded from the web.

Predefined Add Dialog not working as expected in Lightswitch 2012

I've created a query to use in an AutoCompleteBox and it works as expected when the user select the AutoCompleteBox in the grid as shown in the picture below
However if the user click the plus button to add a new record using the predefined Add Dialog then the query and the AutoCompleteBox's format doesn't work as shown in the picture below
Why is this happening and how I can fix that?
Thanks
I haven't yet found a way to edit the default Add New dialog.
Instead, make a new screen, select the "New Data Screen" template, and link it to your entity data. You can customize the screen to fit your needs, even make it a Modal Window by changing the Control Type in the screen properties. Once you have the screen set up the way you want, go back to your grid screen, and double click on the Add... command in the Command Bar of your grid, to edit the AddAndEditNew_Execute code. In that method, call your custom screen.
So, as I got to thinking about this some more, I came back to the thought I had when I tried to do this a few months ago. There has to be a better way, so I Googled it again.
This time, I found something. He's using an old version of Lightswitch, but I've successfully applied his technique in my application built in Lightswitch 2012.
http://www.c-sharpcorner.com/UploadFile/051e29/modal-window-in-editable-grid-screen-in-lightswitch-2011/