fluttercommunity / fluttercommunity/chewie

can't change the progress bar color in ios

Open
#843 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
2.1k
Forks
1.1k
Avg merge
6d 8h
Merged PRs (30d)
6

Description

@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),
));
},
);

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.