This code I have using ContextMenuArea breaks layout modifiers such as weight. In this example the weight modifier will not expand to fill the columns height
Removing the ContextMenuArea surrounding the box fixes it but then there's no context menu.
So what can I do? Or is this more a problem with how the context menu is handled?
e
ephemient
02/03/2025, 8:25 AM
I suspect Column can't see the modifier on a nested child. try putting the Box(modifier) outside of ContextMenuArea
z
zt
02/03/2025, 10:38 PM
Probably. That works for making the Box expand to fill the available space but then the ContextMenuArea only covers the occupied space of the content inside it