SubtitleViewConfiguration constructor

const SubtitleViewConfiguration({
  1. bool visible = true,
  2. TextStyle style = const TextStyle(height: 1.4, fontSize: 32.0, letterSpacing: 0.0, wordSpacing: 0.0, color: Color(0xffffffff), fontWeight: FontWeight.normal, backgroundColor: Color(0xaa000000)),
  3. TextAlign textAlign = TextAlign.center,
  4. double? textScaleFactor,
  5. EdgeInsets padding = const EdgeInsets.fromLTRB(16.0, 0.0, 16.0, 24.0),
})

SubtitleViewConfiguration

Configurable options for customizing the SubtitleView behaviour.

Implementation

const SubtitleViewConfiguration({
  this.visible = true,
  this.style = const TextStyle(
    height: 1.4,
    fontSize: 32.0,
    letterSpacing: 0.0,
    wordSpacing: 0.0,
    color: Color(0xffffffff),
    fontWeight: FontWeight.normal,
    backgroundColor: Color(0xaa000000),
  ),
  this.textAlign = TextAlign.center,
  this.textScaleFactor,
  this.padding = const EdgeInsets.fromLTRB(
    16.0,
    0.0,
    16.0,
    24.0,
  ),
});