theme property
Set the color of the control
var _theme = Theme.of(context);
VideoBox(
controller: vc,
theme: ThemeData(
iconTheme: IconThemeData(color: Colors.pinkAccent),
textTheme: _theme.textTheme.copyWith(
bodyText1: _theme.textTheme.bodyText1.copyWith(color: Colors.white),
),
sliderTheme: _theme.sliderTheme.copyWith(
trackHeight: 2,
overlayShape: SliderComponentShape.noOverlay,
thumbShape: RoundSliderThumbShape(enabledThumbRadius: 6.0),
activeTrackColor: Colors.white,
inactiveTrackColor: Colors.white24,
thumbColor: Colors.white,
),
accentColor: Colors.white,
),
)
Implementation
final ThemeData? theme;