Getting json data with full of different type objects

Hello everyone!

I m coding a portal information application.

In my application, i m getting data with a json file (backend is also codded by me)
in this json file, i have many objects, for example, groceries, places, weather etc… i guess 20 different objects.

in my app, there is a home page with buttons, i want to get all data when the app is opened and for example if user clicked “places” i want to use places data from the json. i dont want to make a new request to server.
what is the best logic of this app.

Make a splash screen. Display Splash Screen till u get all response of then display your home screen.

1 Like

use InitState(); so it can load ahead.

then while waiting for the data use some Loading Screen. to let your user see that the app is loading some data.

1 Like