Order the steps
Order the steps to make a screen previewable.
- Add light/dark and font-scale multipreviews
- Create sample states: loading, empty, error, full
- Add a preview with
@PreviewParameterover those states - Split a stateless
NotesContent(state, onEvent)fromNotesRoute(viewModel)
Choose an answer, then open Show answer below to check it.
Show answer
Answer: D B C A
- Split a stateless
NotesContent(state, onEvent)fromNotesRoute(viewModel)Content takes plain data, so previews can provide it. - Create sample states: loading, empty, error, full Previews are only useful if they cover the hard states.
- Add a preview with
@PreviewParameterover those states One preview function renders every state. - Add light/dark and font-scale multipreviews Catches contrast and truncation problems early.