Shivam Verma
11/07/2023, 4:54 PMPablichjenkov
11/07/2023, 5:21 PM@Composable fun(
content: @Composable AllowedStateOnly.() -> Unit
)
Another possibility is the classic interface:
interface AllowedStateOnly {
@Composable fun Content(modifier: Modifier)
}
efemoney
11/07/2023, 11:40 PMLayout
and reimplement even basic measure/layout logic like box, row & column.
Depending on your use case it might not be worth it tho.dorche
11/08/2023, 12:37 AMefemoney
11/08/2023, 9:17 AMShivam Verma
11/08/2023, 9:22 AMefemoney
11/08/2023, 9:31 AMefemoney
11/08/2023, 9:33 AMShivam Verma
11/08/2023, 9:38 AMefemoney
11/08/2023, 10:16 AMPablichjenkov
11/08/2023, 12:48 PM