So now we want to add or add functionality.
Therefore 1:02 if you click this button I get like a lot dialogue and we won't have a text field in
it and want to type something in it.
And then a button and when we click that button we want to add the item to our list and we can do this
the following way.
We use show and dynamic.
And with this we can add something called an alert dialog
dialog.
And the context should be context
and the boot.
But it should be
the context context and then we want to turn on that dialog.
And this basically all dialogue Kerry return and can do it the tighter and tighter sets X to do.
And then we can give it the content and the content is textfield
and our text fit its needs on changed.
And he gave that Australian value and want to do with the following.
We want to save this variable and we call this variable.
And it's nothing at the moment.
Hans you know I say in part he quits on you so every time we type and all it takes futile input gets
updated.
So it's always up to date and then Kurn next POG can add its actions so we can add some buttons and
we want to add a flat button.
Button is basically the Simplot button that Amahl race button.
It just gives us a text that can click on and needs child and child should be text.
We just say at and that crest what to do is the following.
Want to set up a state and then want to say items add and then
list not items list at.
And we want to put in.
So all input is always up to date and it always has the last input that we got in a text field.
And if we were then made our input in our text field and click the button the input.
So the last import gets added to our list as a new item.
And that's what we Tia and yes with this ad we just simply get the input from our text.
So we started and now we can click on this and we've gone on a lot.
OK so ita and we can then add maybe five at and then we also want to do what's one to get out of our
input here.
So we can do it.
And on preste after that state just simply say data off context pop like and or routing example.
And if we restart it
we can at all
number five
at and we get it right here.
So this looks good so far but we get an hour.
If we for example put this one on this one or this one out and then add another to do we get this problem
basically says we need to really delete the items from our list here to make this work.
Otherwise it gets problems in the background.