Bassam A.
04/17/2022, 10:48 PMGuilherme Cordeiro
04/18/2022, 12:31 PMZach Klippenstein (he/him) [MOD]
04/18/2022, 4:46 PMfillMaxSize
), but whatever is hosting your composable in your app is not. For this sort of component, you probably don’t need the full device frame decoration in the preview, so you can turn that off then the preview should just let your component be whatever size it wants. But if you do want the frame decoration, then in your preview apply the wrapContentSize
modifier to your composable.Chris Sinco [G]
04/18/2022, 5:57 PMBassam A.
04/19/2022, 1:03 PMwrapContentSize
solved the issue.wrapContentSize
modifier.