buildCarousel function
Implementation
Widget buildCarousel(BuildContext context, OpenUiNode node) {
final platform = defaultTargetPlatform;
return _Carousel(
itemWidth: (node.props.number('itemWidth') ?? 240)
.clamp(80, 640)
.toDouble(),
gap: node.theme.spaceOf(node.props.number('gap')) ?? 12,
items: _slots(node, node.props['children']),
arrows:
platform == TargetPlatform.macOS ||
platform == TargetPlatform.windows ||
platform == TargetPlatform.linux,
);
}