我已将自定义主题数据应用于 Chewie 视频,它工作正常,但在全屏播放视频时不起作用,它只是返回默认主题
@override
Widget build(BuildContext context) {
return Column(
children: <Widget>[
Expanded(
child: Center(
child: _chewieController != null &&
_chewieController.videoPlayerController.value.isInitialized
? Theme(
data: Theme.of(context).copyWith(
accentColor: kPrimaryColor,
backgroundColor: kLightPrimaryColor,
iconTheme: IconThemeData(color: kPrimaryColor),
),
child: Chewie(
controller: _chewieController,
),
)
: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
LoadingCircle(),
SizedBox(height: 20),
Text('Loading'),
],
),
),
),
],
);
}