Now it's the detailed page's turn.
Getting the Detail Page Root
Now we need a detail page for the user to see. Since the app mainly moves from a list to a detail flow, we have added the memory_detail.dart
page and route.
The reason for creating a separate route with /memories/:id
and not including it in the above Shell Route is that it is not part of the layout that belongs to MainScaffold
.
By passing the id as a dynamic route, we can retrieve and display the corresponding details, thus we used pathParameter
. This allows the screen to receive and utilize the relevant id information.
Setting the Screen Layout
For now, I have set a layout that roughly displays the necessary information without applying any objects.
What I want to show is
A brief (obituary, memorial) information about the deceased
Photos/videos displayed in a gallery format
Text data in the form of notes also displayed as a preview in a gallery format
This is about what I have set.
One thing I would like to share here is that, if possible, I recommend not setting the text size and boldness separately every time, but instead applying it from the Theme.of(context).textTheme
class. This is for the sake of maintainability and design consistency.
Additionally, I have added a Floating Action Button to allow for new types of data to be added at any time.
This should bring the detail page to a certain degree.

Progress is visible little by little.