buildSplitSlide method
Implementation
Widget buildSplitSlide(Widget side) {
final position = config.options.position;
final flex = config.options.flex;
List<Widget> children = [
buildContentSection((
content: config.data,
options: config.contentOptions ?? const ContentOptions(),
)),
Expanded(flex: flex, child: side),
];
if (position == LayoutPosition.left || position == LayoutPosition.top) {
children = children.reversed.toList();
}
final isVertical =
position == LayoutPosition.top || position == LayoutPosition.bottom;
if (isVertical) {
return Column(children: children);
} else {
return Row(children: children);
}
}