Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
ModelViewer
const ModelViewer({
super.key,
required this.source,
this.controller,
this.height = 320,
this.borderRadius = 24,
this.showControls = true,
this.interactive = true,
this.backgroundColor,
this.label = '3D model',
this.rotationSensitivity = .35,
this.exposure = 1,
this.loadTimeout = const Duration(seconds: 45),
this.onLoaded,
this.onError,
this.onRotationChanged,
this.onInteractionStart,
this.onInteractionEnd,
this.rendererBuilder,
this.motion,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
source | ModelSource | Yes | — |
controller | ModelViewerController? | No | null |
height | double | No | 320 |
borderRadius | double | No | 24 |
showControls | bool | No | true |
interactive | bool | No | true |
backgroundColor | Color? | No | null |
label | String | No | '3D model' |
rotationSensitivity | double | No | .35 |
exposure | double | No | 1 |
loadTimeout | Duration | No | const Duration(seconds: 45) |
onLoaded | VoidCallback? | No | null |
onError | ValueChanged<String>? | No | null |
onRotationChanged | ValueChanged<ModelRotation>? | No | null |
onInteractionStart | VoidCallback? | No | null |
onInteractionEnd | VoidCallback? | No | null |
rendererBuilder | ModelViewerRendererBuilder? | No | null |
motion | ComponentMotion? | No | null |
Application Setup
Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.
Source
lib/src/widgets/media/model_viewer/model_viewer.dart
This reference is generated from the ModelViewer declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

