Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Thank you! Couple doubts: As for the width, CardView needs to be reusable so setting an infinity frame on the View itself doesnt make it reusable at all, right? Me or someone else might need to reuse this View somewhere else and may or may not need the frame to be infinity. I guess I cant just hardcode the frame on the View itself if I plan on reusing it multiple times across the same app, right?
- As for the height, thats a clever approach indeed! I definitely gotta catch up on PreferenceKeys. However the same doubt arises, it seems you moved the shadows, clipShape and background modifiers to the client (whoever uses the component/View) not the CardView itself, killing the possibility of reusing the View.
- Imagine as if CardView should be hosted on a Design System library of pure components or Views and nothing else, I should be able to make the standalone View and let the client size it as he pleases, right?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement