how would I create screen for phones and tablets? ...
# compose
m
how would I create screen for phones and tablets? in
XML
world I would have
...layout
and
…layout-w600dp
. in compose do I use
BoxWithConstraints
and depending on the width I present correct content?
👀 2
a
BoxWithConstraints is one way, you can also use LocalConfiguration.current to read the Configuration object used by all of the Android resource directory qualifiers
✅ 1
smallestScreenWidthDp is the field that you can compare against your 600 breakpoint
✅ 1
m
thanks