salve questo è il mio primo post qui sulla community, ho bisogno di condividere una lista da una pagina ad un'altra, esempio: lista = (item 1) mele; (item 2) banane; ecco ho provato ha cercare su tutto il web soluzioni che potessero risolvere il problema, ed in realtà ho trovato dei modi ma che non mi soddisfano siccome usano TinyDB o comunque usano server ecc.. ecco io vorrei che rimanesse una cosa in app
Grazie mille!
Tinydb is the easiest way to do it.
You not necessarily need 2 screens... see tip 1 here
Taifun
si in realtà si è necessario siccome è un proggetto molto grande e ho usato quella tecnica, infatti il passare una lista ad una pagina ad un'altra è per passare due dati uno il nome dell'utente e l'altro è il numero del vertical arangement selezionato. usare tinyDB non credo possa essere la soluzione giusta perchè l'applicazione potrebbe essere usata da più di 100 persone ipoteticamente siccome è una applicazione poi caricata app store
Why do you think this. If it works for one user, it should work for one hundred users, unless, of course, you need to share data between all one hundred users, in which case you need an online database.
Or are you considering one hundred users using the same device ?
No of course not a hundre people's with the same device, but its that i dont know if its the real soluzion, like, how i can do it? After i opened the right page can i store the two valor and then cancel the list on the server?
Do you need to have that data still there after you shut down your app and start it again?
If yes, you need a database or a File.
No i don't need it at all only to change from a screen to a another then i want to delit it istantly. can i doit?
There is no other way to transfer data between screens.
Use stacked vertical arrangements instead of screens.
Show only one arrangement at a time.
P.S. How big do you expect this app to become?
Consider that i used all 10 pages, that have inside all at least 10 vertical arrangment sow yep how i doit with tinyDB?
Each screen is different, and each vertical arrangement on each screen is different (to any other vertical arrangment)? No repetition at all ?
Yes sir and i need only for one screen because from screen 1 when i press button 1 i need to open the screen 2 with 2 valor: valor1= the arrangement selected and valor2= the user name at the end i need to cleen the data on the database (TinyDB)
Could you have just two screens, and show different data on the second screen based upon the selection made on screen 1 ?
Preferible no i just endid to make the grafics and i am preoccupade about it can be slower if i use only two screen the are more than 30 immages in total, i use fire base to save important data undeliable, clocks hundreds of button and labbels, logic, global variables ecc.. sow i think its a little more lite on more screen fore the fluidity of the app
What kind of app is this?
Does the number of buttons and labels increase as the amount of data increases?
If so, the design is wrong.
Hi guys thanks for the support i just find the solution, at the end i used TinyDB: in page 1 i save the list with a random tag between 1 end 999 and sand as valor of start the tag generetid. In page 2 i call from tinyDB the list with the tag in the start valor and save the list that i can use it!
Have a good day