Best practice to pass data to detail page

Hi, I’m using Supabase with Flutter.
What is the best way to pass data from List page to detail page?

  1. Set id as parameter and read data on detail page
  2. Set Entire object as parameter and use in detail page

The first is ideal because of web URL params will clean. In this case, how can we get data from supabase on InitState.

And, the solution informed In youtube video, looks like the second.(video in older version?) https://www.youtube.com/watch?v=1x1to_qUMuQ&t=1s
I’m afraid this can be pass all the parameters in the URL in web, so I don’t want to do so.

Any feedback is welcome.

To pass parameters click on the edit button next to the page you select

Thanks, and I want to know whether you prefer to pass only ID or entire data

if you have the entire data then good you can pass it, since if you provide the id you need to do another request inside the details page
both options are valid, but passing the full data is easier to implement

1 Like

Thanks, I got it. Going to pass the entire data.

1 Like