[mob][photos] Minor UI enhancements on native video player controls

This commit is contained in:
ashilkn
2024-08-07 17:55:55 +05:30
parent a4c0c8b999
commit 553e62dfae
3 changed files with 12 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
import "package:flutter/material.dart";
import "package:native_video_player/native_video_player.dart";
import "package:photos/theme/ente_theme.dart";
class PlayPauseButton extends StatefulWidget {
final NativeVideoPlayerController? controller;
@@ -34,6 +35,10 @@ class _PlayPauseButtonState extends State<PlayPauseButton> {
decoration: BoxDecoration(
color: Colors.black.withOpacity(0.3),
shape: BoxShape.circle,
border: Border.all(
color: getEnteColorScheme(context).strokeFaint,
width: 1,
),
),
child: AnimatedSwitcher(
duration: const Duration(milliseconds: 250),

View File

@@ -67,7 +67,7 @@ class _SeekBarState extends State<SeekBar> with SingleTickerProviderStateMixin {
activeTrackColor: colorScheme.primary300,
inactiveTrackColor: fillMutedDark,
thumbColor: backgroundElevatedLight,
overlayColor: Colors.red.withOpacity(0.4),
overlayColor: fillMutedDark,
),
child: Slider(
min: 0.0,

View File

@@ -191,11 +191,17 @@ class _VideoWidgetNativeState extends State<VideoWidgetNative>
borderRadius: const BorderRadius.all(
Radius.circular(8),
),
border: Border.all(
color: getEnteColorScheme(context)
.strokeFaint,
width: 1,
),
),
child: Row(
children: [
AnimatedSize(
duration: const Duration(seconds: 5),
curve: Curves.easeInOut,
child: ValueListenableBuilder(
valueListenable: _controller!
.onPlaybackPositionChanged,