From 4233e82abaab5e87d22514e2f39fd81c6a473160 Mon Sep 17 00:00:00 2001 From: mertalev <101130780+mertalev@users.noreply.github.com> Date: Wed, 13 Nov 2024 00:53:12 -0500 Subject: [PATCH] adjust text width, move volume button slightly right --- mobile/lib/widgets/asset_viewer/formatted_duration.dart | 3 ++- mobile/lib/widgets/asset_viewer/video_mute_button.dart | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mobile/lib/widgets/asset_viewer/formatted_duration.dart b/mobile/lib/widgets/asset_viewer/formatted_duration.dart index b06d20287a99a..bf64a0c0024f3 100644 --- a/mobile/lib/widgets/asset_viewer/formatted_duration.dart +++ b/mobile/lib/widgets/asset_viewer/formatted_duration.dart @@ -19,7 +19,7 @@ class FormattedDuration extends StatelessWidget { @override Widget build(BuildContext context) { return SizedBox( - width: data.inHours > 0 ? 62 : 41, // use a fixed width to prevent jitter + width: data.inHours > 0 ? 64 : 43, // use a fixed width to prevent jitter child: Text( _formatDuration(data), style: const TextStyle( @@ -27,6 +27,7 @@ class FormattedDuration extends StatelessWidget { color: whiteOpacity75, fontWeight: FontWeight.normal, ), + textAlign: TextAlign.center, ), ); } diff --git a/mobile/lib/widgets/asset_viewer/video_mute_button.dart b/mobile/lib/widgets/asset_viewer/video_mute_button.dart index 6c0d0edb3414f..da0f6f31749c7 100644 --- a/mobile/lib/widgets/asset_viewer/video_mute_button.dart +++ b/mobile/lib/widgets/asset_viewer/video_mute_button.dart @@ -16,6 +16,8 @@ class VideoMuteButton extends ConsumerWidget { onPressed: () => ref.read(videoPlayerControlsProvider.notifier).toggleMute(), color: Colors.white, + padding: const EdgeInsets.all(0), + alignment: Alignment.centerRight, ); } }