ThreeScene constructor
ThreeScene({})
Creates a Three.js scene canvas.
Implementation
ThreeScene({
this.controller,
int width = 640,
int height = 360,
String? className,
String? label,
Map<String, Object?> props = const {},
Map<String, Object?> style = const {},
DartStyle? dartStyle,
}) : super(
'canvas',
props: mergeComponentProps(
{
...props,
'width': width,
'height': height,
if (controller != null) '_flintThreeSceneController': controller,
if (label != null) 'aria-label': label,
if (label == null) 'aria-hidden': true,
'tabIndex': props['tabIndex'] ?? 0,
},
className: className,
defaultStyle: const {
'display': 'block',
'width': '100%',
'max-width': '100%',
'height': 'auto',
'touch-action': 'none',
},
dartStyle: dartStyle,
style: style,
),
);