It would be better to set the projectBucket directly on a higher-level node so you can get all the data at once instead of making all those getValue calls.
Could you show how your database is structured (hide any sensitive data if there are any)?
If you set your project bucket to “Categories” you can get all the categories in a single call,
Firebase will return a JSON text that can be used as a dictionary.
It’s working Thank you for that. But one change needs to be made, the list of 10 main names should be visible on the first screen, but after clicking on it, the data that should be visible on the second screen is visible on this screen.
Great man I can’t thank you enough, my big question has been resolved, thank you once again. If you have any doubts about this, please ask again.And yes, how can I display the category in label 1 of the second screen after the click event? Please tell me at the end. Thank you again.