Bassam A.
04/17/2022, 10:48 PMGuilherme Cordeiro
04/18/2022, 12:31 PMGuilherme Cordeiro
04/18/2022, 12:33 PMGuilherme Cordeiro
04/18/2022, 12:34 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 PMChris Sinco [G]
04/18/2022, 5:58 PMBassam A.
04/19/2022, 1:03 PMwrapContentSize solved the issue.Bassam A.
04/19/2022, 1:04 PMBassam A.
04/19/2022, 1:05 PMwrapContentSize modifier.