Are there plans in future to enhance the scaffold ...
# compose
j
Are there plans in future to enhance the scaffold API so that it takes into account various cutouts while going edge-to-edge layouts? Trying on a pixel 4A emulator the camera is positioned such that it overlaps the drawer or the place the title would be present.
Now wondering is this scaffold or in general all UI needs to handle Pixel 4A placement of camera?
m
Good question. Not sure about pixel4a in particular, but
Scaffold
definitely requires some future work to make edge-to-edge easy and out of the box. In the meantime, @cb has an excellent library with predefined set of modifier to make it easier.
👍 1
j
I believe you are referring this one https://github.com/chrisbanes/insetter
m
Yes, sorry, didn't have it at hand. This is the one!
👍 1
a
this might be related to this as well?
m
Yes, for now no matter whether you use scaffold or not -- it's not doing anything and you still have to set status bar color as in regular android, nothing compose specific here I believe
m
It looks like your emulator is not configured properly anyway. Notice that system doesn’t respect the cutout as well so it overlaps the clock and the notification bar itself is much narrower than it would be on Pixel 4a. This happens if you create emulator of some device and then just select device frame for some other device. The device frame is just an image overlayed on top and will not impact how system sees things.