caduandrade / multi_split_view

Provides horizontal or vertical multiple split view for Flutter.
https://caduandrade.github.io/multi_split_view/
MIT License
129 stars 24 forks source link

axis in dividerBuilder callback is always horizontal #48

Closed cabbi closed 7 months ago

cabbi commented 7 months ago

Hi, I'm building a vertical split screen and wanted to draw a divider, but in the dividerBuilder callback I get always axis parameter as Axis.horizontal

caduandrade commented 7 months ago

Hi @cabbi!

The API tricked you. In this case, it is the axis of the divider and not the screen. So in a vertical split screen, the divider will be horizontal. :wink:

cabbi commented 7 months ago

Got it thanks!