SubtitleStyleConfig constructor
const
SubtitleStyleConfig({
- TextStyle textStyle = const TextStyle(fontSize: 16, color: Colors.white, backgroundColor: Colors.transparent, fontWeight: FontWeight.normal),
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 10, vertical: 1),
- EdgeInsets margin = const EdgeInsets.all(1.0),
- BoxDecoration? decoration = const BoxDecoration(color: Colors.transparent, borderRadius: BorderRadius.all(Radius.circular(6))),
- double? maxWidth,
- int? maxLines,
- TextOverflow overflow = TextOverflow.clip,
Implementation
const SubtitleStyleConfig({
this.textStyle = const TextStyle(
fontSize: 16,
color: Colors.white,
backgroundColor: Colors.transparent,
fontWeight: FontWeight.normal,
),
this.padding = const EdgeInsets.symmetric(horizontal: 10, vertical: 1),
this.margin = const EdgeInsets.all(1.0),
this.decoration = const BoxDecoration(
color: Colors.transparent,
borderRadius: BorderRadius.all(Radius.circular(6)),
),
this.maxWidth,
this.maxLines,
this.overflow = TextOverflow.clip,
});