We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@diegotori using this to change the progress bar color but it is not changing it showing purple color by default .
chewieController = ChewieController( videoPlayerController: controller, autoPlay: false, looping: true, allowedScreenSleep: false, showControlsOnInitialize: false, cupertinoProgressColors: ChewieProgressColors( playedColor: Color(0xffFD4146), bufferedColor: Color(0xffFD4146), ), materialProgressColors: ChewieProgressColors( playedColor: Color(0xffFD4146), bufferedColor: Color(0xffFD4146), ), deviceOrientationsOnEnterFullScreen: [ DeviceOrientation.landscapeRight, DeviceOrientation.landscapeLeft, ], deviceOrientationsAfterFullScreen: [ DeviceOrientation.portraitDown, DeviceOrientation.portraitUp, ], errorBuilder: (BuildContext context, String errorMessage) { print(errorMessage); return Container( alignment: Alignment.center, padding: EdgeInsets.all(30), child: Text( errorMessage.contains("Source error") || errorMessage.contains("not have permission") ? "Invalid URL" : errorMessage, textAlign: TextAlign.center, style: Platform.isIOS ? TextStyle( color: AppColors.black, fontSize: 21, fontWeight: FontWeight.w600) : TextStyle(color: AppColors.white,fontSize: 18), )); }, );
The text was updated successfully, but these errors were encountered:
You can change it in ThemeData
ThemeData( progressIndicatorTheme: ProgressIndicatorThemeData(color: Colors.red) )
Sorry, something went wrong.
No branches or pull requests
@diegotori using this to change the progress bar color but it is not changing it showing purple color by default .
chewieController = ChewieController(
videoPlayerController: controller,
autoPlay: false,
looping: true,
allowedScreenSleep: false,
showControlsOnInitialize: false,
cupertinoProgressColors: ChewieProgressColors(
playedColor: Color(0xffFD4146),
bufferedColor: Color(0xffFD4146),
),
materialProgressColors: ChewieProgressColors(
playedColor: Color(0xffFD4146),
bufferedColor: Color(0xffFD4146),
),
deviceOrientationsOnEnterFullScreen: [
DeviceOrientation.landscapeRight,
DeviceOrientation.landscapeLeft,
],
deviceOrientationsAfterFullScreen: [
DeviceOrientation.portraitDown,
DeviceOrientation.portraitUp,
],
errorBuilder: (BuildContext context, String errorMessage) {
print(errorMessage);
return Container(
alignment: Alignment.center,
padding: EdgeInsets.all(30),
child: Text(
errorMessage.contains("Source error") ||
errorMessage.contains("not have permission")
? "Invalid URL"
: errorMessage,
textAlign: TextAlign.center,
style: Platform.isIOS
? TextStyle(
color: AppColors.black,
fontSize: 21,
fontWeight: FontWeight.w600)
: TextStyle(color: AppColors.white,fontSize: 18),
));
},
);
The text was updated successfully, but these errors were encountered: