mod: color alpha

`withOpacity` -> `withValues`

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-19 20:21:01 +08:00
parent 45b4f9570b
commit a7ffc3b05f
62 changed files with 193 additions and 164 deletions

View File

@@ -444,7 +444,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
plPlayerController.vttSubtitlesIndex.value
? 0
: plPlayerController.vttSubtitlesIndex.value,
color: Colors.black.withOpacity(0.8),
color: Colors.black.withValues(alpha: 0.8),
itemBuilder: (BuildContext context) {
return plPlayerController.vttSubtitles
.asMap()
@@ -483,7 +483,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
plPlayerController.setPlaybackSpeed(value);
},
initialValue: plPlayerController.playbackSpeed,
color: Colors.black.withOpacity(0.8),
color: Colors.black.withValues(alpha: 0.8),
itemBuilder: (BuildContext context) {
return plPlayerController.speedList.map((double speed) {
return PopupMenuItem<double>(
@@ -1077,11 +1077,11 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
buffered: Duration(seconds: buffer),
total: Duration(seconds: max),
progressBarColor: colorTheme,
baseBarColor: Colors.white.withOpacity(0.2),
baseBarColor: Colors.white.withValues(alpha: 0.2),
bufferedBarColor: Theme.of(context)
.colorScheme
.primary
.withOpacity(0.4),
.withValues(alpha: 0.4),
timeLabelLocation: TimeLabelLocation.none,
thumbColor: colorTheme,
barHeight: 3.5,

View File

@@ -57,8 +57,8 @@ class BottomControl extends StatelessWidget implements PreferredSizeWidget {
buffered: Duration(seconds: buffer),
total: Duration(seconds: max),
progressBarColor: colorTheme,
baseBarColor: Colors.white.withOpacity(0.2),
bufferedBarColor: colorTheme.withOpacity(0.4),
baseBarColor: Colors.white.withValues(alpha: 0.2),
bufferedBarColor: colorTheme.withValues(alpha: 0.4),
timeLabelLocation: TimeLabelLocation.none,
thumbColor: colorTheme,
barHeight: 3.5,