I put some urls inside of the list but it shows only "..., " for every items more than 5. the message is this:
I/flutter ( 8408): [https://firebasestorage.googleapis.com/v0/b/bagom-4caee.appspot.com/o/princess.jpg?alt=media&token=355b8b56-1d40-4878-993b-6a80719caf7e, https://firebasestorage.googleapis.com/v0/b/bagom-4caee.appspot.com/o/hensel.jpg?alt=media&token=1f4db537-853d-4c51-96a5-c76c05cd55ae, ..., https://firebasestorage.googleapis.com/v0/b/bagom-4caee.appspot.com/o/jungle.jpg?alt=media&token=a3bd7483-df7e-4cd1-81aa-1992d3596519, https://firebasestorage.googleapis.com/v0/b/bagom-4caee.appspot.com/o/teleport.jpg?alt=media&token=de7fc28b-1652-4d78-ad50-da5d80fef3fb, https://firebasestorage.googleapis.com/v0/b/bagom-4caee.appspot.com/o/island.jpg?alt=media&token=0f0532ec-801b-4ff0-99a5-b0f6b523c259]
I have 7 items in the list, but it only shows 5 and the other 2 are "...,". the other one just shows "...," instead of the actual URL. I think this is why GridView inside the FutureBuilder is causing the problem because of the index.
How can I fix the problem? Thank you for your help in advance!
Related
in my case, I want to do some logic based on navigator stack length.
as you saw, when you want to debug NavigatorState, it shows a text like:
NavigatorState#daea6(tickers: tracking 3 tickers)
but I got confused that how to get tickers number from NavigatorState.
because it's a private field.
thanks
I was trying to make an app in flutter, I now have an app that adds a new element into a list upon pressing a FAB. Kindly let me know how can I map another ListViewBuilder to each element. I am not sure if I am being clear enough, but I am trying to be clearer. I want an app that lets you create lists inside of lists, in flutter. So for each List element, there lies a corresponding list in which the contents of the list can be added. I am a beginner, and I am struggling to figure it out. plzzz, help me out..thanks in advance...
To create a list in a list you can use:
List<List<int>> numbers = new List<List<int>>();
And then you can add a new list to this by doing:
numbers.add([0,1,2]);
This adds the list [0,1,2] to the list called numbers.
From here you can access an element in this case the second element in the first list:
x = numbers[0][1]
Currently, I have a list view that allows items within the list view to be dismissable. I want each item within that list view to correspond to an element within another list that contains text. And when that widget in the listview is dismissed, then the corresponding element in the other list also gets deleted. Does anyone know hot
What I suggest is that if there is any common thing in both list that are related to each other such as id or any else say text in your case ,After dismissible widget get triggered iterate via the second list just check if there's any common based on the 1st list item, and delete the item rebuild the state. Maybe adding some code might be better but so far this is the best way you can do. let me know if it work.
My requirement is to display the current double pages in following format:-
2-3
4-5
and I only done with displaying singe page at a time however there is a double page view.
like
2 at 2-3
4 at 4-5
Any idea how do I fetch these current double pages in expected format?
I know I can do it by using adding logic, but would be better if I do it with internal logic of turnjs.
because It can be happen only single page comes sometimes like cover page or last page. I am sure there must be a way to find by turnjs only.
Any help will be appreciated...
Thanks in Advance.
I found its solution.. There is an array with the name view that holds the page's numbers to display. If there is a page 1 it holds the value
view[0] =1
View [1]=0
Similarly if its a last page lets say page 12 then the value in view will be
View [0]=0
View [1]=12
And if we are at 4-5 pages then
View [0]=4
View [1]=5
Got the solution :)
To be more specific here you can use this property.
view
Eg.
var view = $("#flipbook").turn("view").join(" - ");
alert("Current view: "+view);
It will return like this.
0 - 1
2 - 3
.......
Read here: http://www.turnjs.com/docs/Property:_view
Hi i got a Problem with adding new Items to a Sencha Nested List Component.
currently my code looks like this:
var newItem = nestedList.add({text:rowData.name});
nestedList.doLayout();
The Problem is the Items just wont show up no matter how often on on what i do call doLayout.
When in debug the nestedList Object, the items are correctly placed in the items array.
Greetings Nexum
try calling nestedlist.update()
thats what i call before dolayout on normal lists
nestedList.down("list").add({});
nestedList.down("list").refresh();