[mob][photos] Minor UI enhancements on native video player controls
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user