Code
Jetpack Compose UI Architecture Plugin – A set of templates to make the development of new Jetpack Compose features faster

Jetpack Compose UI Architecture Plugin provides a set of templates that to make the development of new Jetpack Compose features faster.
To learn more about the architecture and templates are based on it, you can check following sources
- Jetpack Compose UI Architecture Article – Introduction to all the components with the example and motivation behind it
- Compose UI Architecture Docs – GitHub pages that’s hosts more in-depth explanations, rules and examples.
New Feature Dialog
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
Live Templates
Along with the templates provided with the Dialogs, this plugin also provides several live templates. There are currently two groups of Live Templates available: Compose Foundation and UI Arch
Compose Foundation Live Templates
This set of templates contains most commonly used layouts and effects that can be used in any project
col
-> Create ComposableColumn
with pre-definedModifier
and Arrangementrow
-> Create ComposableRow
with pre-definedModifier
and Arrangementbox
-> Create ComposableBox
withModifier
laun
-> Create Launched Effect with Unit Keydisp
-> Create Disposable Effect with Unit Key andonDispose
Prepared
Compose UI Arch Live Templates
Currently, has only one template, that operates similar to the New Component Dialog
compon
-> Creates new Compose UI Component with theModifier
as the parameter and a Preview
New Component Dialog
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.
