In the next stories we were a bit simpler to do list app.
And for this we will erase some parts of your application here so we can delete these variables.
We would delete all our actions cause this to do so we would delete on draw completely don't need that
and we were in our Culham delete all radio buttons checkbox and every sing.
And we also can delete all column rights.
So we want to birds to have.
And we also can get away if we want to make a list of items and display it display them in a list.
Therefore we're firstly make a list list of items and then display display them in our body.
This can be done like this.
We make our list and you list just list.
And then we need to call it a message call it in it's state
and with this in it's day.
We initialize or state and this means it gets called when it gets started and sets a state.
So it also rendered us items to alaw.
So here we can add items to our list and then connect this list to our body and then our body gets Renn
that's when all our list starts.
So we can say list at.
And we just at maybe number one and then duplicate it.
Sometimes just put these items here and now we want to display this list in our body and we can use
something called a list of UBid
list view
and here we need an item current and this current should be as long
as length or list lengths.
So long as our list
and then we need an item below which boots or different items in our lists or with item item and we
get the length of our list.
We need to give it a number and I tumbled out a bit as many as are in our list so we use all to murder
and must give it.
But context just called context and and index.
And then we want to return something and we can return something here.
It's called dismissable.
This also has some nice features.
You can simply direct this dismissable all of your application.
So that's what's called a dismissible.
So this like
functionality.
Right.
But in it and it needs a key and for this we it the key maybe is an index should be fine.
Index to string Yeah we need to make the index string.
Archy wants to string and can some to say index and then call a to string to make our index which is
an integer to string
and then give it to a child and the child should be a list tie and this list time just needs and tighter
and tighter should be a text widget in all case and we simply want to so loose and give it the index
you don't need that and that should be awful no just restarts or.
And we should see a list of items.
Schwall
Yeah.
So this all list of items we've got.
Number one number two number three number four.
And we can now take these attempts and do X and all that.
That's all dismissable can simply text and all.
One by one and the next we do want to add or add functionality down here on and off button and add then
some more items.