DVBox<T > class
Constructors
DVBox ([Widget ? child , DVModifier ? modifier ])
const
DVBox.audio (DVMediaSource source , {DVImage ? artwork , DVMediaControls controls = DVMediaControls.standard , DVBackgroundPlayback background = DVBackgroundPlayback.none , bool autoplay = false , DVMediaSession ? session , DVCaptions ? captions , bool loop = false , DVMediaController ? controller , DVModifier ? modifier })
An audio player, as a box. See DVBox.video .
DVBox.camera ({DVCameraLens lens = DVCameraLens.back , String ? device , DVCameraControls controls = DVCameraControls.standard , void onPhoto (DVFile photo )?, void onVideo (DVFile photo )?, DVCameraController ? controller , DVModifier ? modifier })
A live camera, as a box: the preview, and a shutter, record, lens,
flash and torch where the device has them.
DVBox.grid (List <Widget > children , {DVModifier ? modifier , int columns = 2 , double spacing = 8 , bool responsive = true })
const
DVBox.horizontalScrollable (List <Widget > children , {DVModifier ? modifier , double spacing = 8 })
const
DVBox.image (Object source , {String ? alt , double ? width , double ? height , BoxFit fit = BoxFit.cover , Widget ? placeholder , DVModifier ? modifier })
An image, as a box.
DVBox.list (List <Widget > children , {DVModifier ? modifier , double spacing = 8 , DVAlign align = DVAlign.start , DVCrossAlign crossAlign = DVCrossAlign.stretch })
const
DVBox.masonry (List <Widget > children , {DVModifier ? modifier , int columns = 2 , double spacing = 8 , bool responsive = true })
const
DVBox.recorded ({required DVWidgetRecorder recorder , required Widget child , DVModifier ? modifier })
Whatever child draws, recordable: recorder.start() records it to an
MP4 and recorder.start(streamTo: ...) streams it live. Nothing changes
on screen; the box only marks what is recorded.
DVBox.row (List <Widget > children , {DVModifier ? modifier , double spacing = 8 , DVAlign align = DVAlign.start , DVCrossAlign ? crossAlign })
const
DVBox.scrollableList (List <Widget > children , {DVModifier ? modifier , double spacing = 8 })
A vertical list that scrolls when its children do not fit.
const
DVBox.stack (List <Widget > children , {DVModifier ? modifier })
const
DVBox.threePane (List <Widget > children , {DVModifier ? modifier , double spacing = 16 , DVThreePaneFold oneFold = DVThreePaneFold.firstAlone })
Three panes, one per panel of a tri-fold.
const
DVBox.twoPane (List <Widget > children , {DVModifier ? modifier , double spacing = 16 })
Two panes, one each side of the fold on a foldable.
const
DVBox.video (DVMediaSource source , {DVImage ? poster , DVMediaControls controls = DVMediaControls.standard , DVBackgroundPlayback background = DVBackgroundPlayback.none , bool autoplay = false , DVMediaSession ? session , DVCaptions ? captions , bool loop = false , DVMediaController ? controller , DVModifier ? modifier })
A video player, as a box.
DVBox.wrap (List <Widget > children , {DVModifier ? modifier , double spacing = 8 , DVAlign align = DVAlign.start , DVCrossAlign crossAlign = DVCrossAlign.stretch })
Compatibility alias for DVBox.wrapLine ; prefer wrapLine in new code.
const
DVBox.wrapLine (List <Widget > children , {DVModifier ? modifier , double spacing = 8 , DVAlign align = DVAlign.start , DVCrossAlign crossAlign = DVCrossAlign.stretch })
Canonical wrap layout for a static collection of children.
const
Properties
camera
→ DVCameraController
The camera of a DVBox.camera box. Throws for any other box.
no setter
controller
→ DVMediaController
The player of a DVBox.video or DVBox.audio box.
no setter
hashCode
→ int
The hash code for this object.
no setter inherited
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
labelChildren
→ List <Widget >
The widgets this box was handed, for reading the words on a control
without building it. Not for application code.
no setter
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
aspectRatio (double ratio )
→ DVBox <T >
Holds the box's content to ratio (width / height).
build (BuildContext context )
→ Widget
Describes the part of the user interface represented by this widget.
override
createElement ()
→ StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren ()
→ List <DiagnosticsNode >
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
debugFillProperties (DiagnosticPropertiesBuilder properties )
→ void
Add additional properties associated with the node.
inherited
grid ({int columns = 2 , double spacing = 8 , bool responsive = true })
→ DVBox <T >
horizontalScrollable ({double spacing = 8 })
→ DVBox <T >
masonry ({int columns = 2 , double spacing = 8 , bool responsive = true })
→ DVBox <T >
modifier (DVModifier mod )
→ DVBox <T >
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
row ({double spacing = 8 , DVAlign align = DVAlign.start })
→ DVBox <T >
scrollable ()
→ DVBox <T >
stack ()
→ DVBox <T >
styleModifier (DVModifier mod )
→ DVBox <T >
toDiagnosticsNode ({String ? name , DiagnosticsTreeStyle ? style })
→ DiagnosticsNode
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep .
inherited
toString ({DiagnosticLevel minLevel = DiagnosticLevel.info })
→ String
A string representation of this object.
inherited
toStringDeep ({String prefixLineOne = '' , String ? prefixOtherLines , DiagnosticLevel minLevel = DiagnosticLevel.debug , int wrapWidth = 65 })
→ String
Returns a string representation of this node and its descendants.
inherited
toStringShallow ({String joiner = ', ' , DiagnosticLevel minLevel = DiagnosticLevel.debug })
→ String
Returns a one-line detailed description of the object.
inherited
toStringShort ()
→ String
A short, textual description of this widget.
inherited
wrap ({double spacing = 8 })
→ DVBox <T >
wrapLine ({double spacing = 8 })
→ DVBox <T >
Constants
scene
→ const DVSceneBoxFactory
A 3D viewport: DVBox.scene(DVScene(nodes: [...])). The box owns size,
modifiers, gestures and semantics; the scene owns the 3D content.