You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Packages like gap and flutter_gutter use Flex.direction/RenderFlex.direction to determine if they are in a vertically or horizontally aligned layout.
BoxyFlex and BoxyRenderFlex should implement their Flutter counterparts so that these packages' widgets will work properly with BoxyRow and BoxyColumn out of the box(y).
Here's a related Flutter/flutter issue that if accepted would change how this should be implemented: flutter/flutter#133394
The text was updated successfully, but these errors were encountered:
This can't be done without breaking boxy when the framework changes Flex, also, walking the tree to check the runtime type of ancestors is probably a bad idea. I'll gladly implement a directionality interface if added to the framework, I think your best bet until then is a dynamic call at layout time:
var direction = defaultDirection
try {
direction = (parent asdynamic).direction asAxis;
} catch (e) {}
Packages like gap and flutter_gutter use
Flex.direction
/RenderFlex.direction
to determine if they are in a vertically or horizontally aligned layout.BoxyFlex
andBoxyRenderFlex
should implement their Flutter counterparts so that these packages' widgets will work properly withBoxyRow
andBoxyColumn
out of the box(y).Here's a related
Flutter/flutter
issue that if accepted would change how this should be implemented:flutter/flutter#133394
The text was updated successfully, but these errors were encountered: