Jetpack Compose UI Architecture Plugin provides a set of templates that to make the development of new Jetpack Compose features faster.
This dialog allows you to create several files related to Jetpack Compose UI Architecture. After you provide a name for your feature, plugin will generate following:
[featname]
- package (lowercased) (optional)[FeatName]Contract
- contains UIState, Actions emitted from the UI layer[FeatName]Screen
- Basic, stateless, UI of your Screen[FeatName]Coordinator
- Main State holder of the Screen, controls the screen UI logic and Interactions[FeatName]Route
- Main entry point, tied toCoordinator
and delegates all the Actions to it, Emits Screen[FeatName]ViewModel
- basic implementation of your viewModel
New component dialog simply allows you to create new Jetpack Compose UI Component a bit quicker. It will generate simple component with the Modifier
as the parameter and Preview setup for you.