USubtitleStyleConfig class
Subtitle look: size, color, outline, background, fonts (separate RTL font), padding, max lines.
Constructors
- USubtitleStyleConfig({double fontSize = 18, Color color = const Color(0xFFFFFFFF), Color outlineColor = const Color(0xFF000000), double outlineWidth = 2.5, Color backgroundColor = const Color(0x00000000), FontWeight fontWeight = FontWeight.w600, String? fontFamily, String? rtlFontFamily = "Vazir", double bottomPadding = 24, double horizontalPadding = 24, double lineHeight = 1.3, bool shadow = true, bool honorAssStyling = true, int maxLines = 4})
-
const
Properties
- backgroundColor → Color
-
Background color.
final
- bottomPadding → double
-
Distance from the bottom.
final
- color → Color
-
Main color (defaults to the theme).
final
- fontFamily → String?
-
Font for left-to-right text.
final
- fontSize → double
-
Font size.
final
- fontWeight → FontWeight
-
Font weight.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- honorAssStyling → bool
-
Uses colors/positions from ASS/SSA files.
final
- horizontalPadding → double
-
Side padding.
final
- lineHeight → double
-
Line height.
final
- maxLines → int
-
Most lines shown at once.
final
- outlineColor → Color
-
Text outline color.
final
- outlineWidth → double
-
Text outline width.
final
- rtlFontFamily → String?
-
Font for Persian/Arabic text.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadow → bool
-
Adds a drop shadow.
final
Methods
-
copyWith(
{double? fontSize, Color? color, double? outlineWidth, double? bottomPadding, Color? backgroundColor}) → USubtitleStyleConfig - Copy with some fields changed.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited