FijkFit class

How a video should be inscribed into FijkView.

See also BoxFit

Constructors

FijkFit({Alignment alignment = Alignment.center, double aspectRatio = -1, double sizeFactor = 1.0})
const

Properties

alignment Alignment
Alignment for this FijkView Container. alignment is applied to Texture inner FijkView
final
aspectRatio double
aspectRatio controls inner video texture widget's aspect ratio. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sizeFactor double
The size of Texture is multiplied by this factor. [...]
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

ar4_3 → const FijkFit
As large as possible while still containing the video entirely within the target FijkView box. But change video's aspect ratio to 4:3.
const FijkFit(aspectRatio: 4.0 / 3.0)
ar16_9 → const FijkFit
As large as possible while still containing the video entirely within the target FijkView box. But change video's aspect ratio to 16:9.
const FijkFit(aspectRatio: 16.0 / 9.0)
contain → const FijkFit
As large as possible while still containing the video entirely within the target FijkView box.
const FijkFit(sizeFactor: 1.0, aspectRatio: -1, alignment: Alignment.center)
cover → const FijkFit
As small as possible while still covering the entire target FijkView box.
const FijkFit(sizeFactor: -0.5, aspectRatio: -1, alignment: Alignment.center)
fill → const FijkFit
Fill the target FijkView box by distorting the video's aspect ratio.
const FijkFit(sizeFactor: 1.0, aspectRatio: double.infinity, alignment: Alignment.center)
fitHeight → const FijkFit
Make sure the full height of the source is shown, regardless of whether this means the source overflows the target box horizontally.
const FijkFit(sizeFactor: -2.5)
fitWidth → const FijkFit
Make sure the full width of the source is shown, regardless of whether this means the source overflows the target box vertically.
const FijkFit(sizeFactor: -1.5)