architecture-templates
architecture-templates copied to clipboard
Refactor for the modifier
We already have defined the modifier in the parameters and we can use the same in the whole function, and there is no need for defining it again for each Composable
.
@LinX64 IMO, the modifier parameter shouldn't apply to all composable in the function, it may break them when it's not using the default Modifier. In this example, the modifier which passes from the navigation contains padding, and it will apply to all composable that use it.