mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
fix: Video player - Use theme to get the correct text color (#98)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
69912821e6
commit
ab3d7ef85a
2 changed files with 20 additions and 7 deletions
|
|
@ -1,9 +1,11 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:ficonsax/ficonsax.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
import 'package:fladder/providers/settings/video_player_settings_provider.dart';
|
||||
import 'package:fladder/util/list_padding.dart';
|
||||
import 'package:fladder/widgets/shared/fladder_slider.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
class VideoVolumeSlider extends ConsumerStatefulWidget {
|
||||
final double? width;
|
||||
|
|
@ -58,6 +60,7 @@ class _VideoVolumeSliderState extends ConsumerState<VideoVolumeSlider> {
|
|||
child: Text(
|
||||
(volume).toStringAsFixed(0),
|
||||
textAlign: TextAlign.center,
|
||||
style: Theme.of(context).textTheme.bodyMedium,
|
||||
),
|
||||
),
|
||||
].addInBetween(const SizedBox(width: 6)),
|
||||
|
|
|
|||
|
|
@ -311,7 +311,7 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||
child: progressBar(mediaPlayback),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
const SizedBox(height: 8),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
|
|
@ -461,7 +461,9 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
child: Card(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||
child: Text(playbackModel?.label ?? ""),
|
||||
child: Text(
|
||||
playbackModel?.label ?? "",
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
@ -469,7 +471,9 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
Card(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||
child: Text('${item.streamModel?.displayProfile?.value} ${item.streamModel?.resolution?.value}'),
|
||||
child: Text(
|
||||
'${item.streamModel?.displayProfile?.value} ${item.streamModel?.resolution?.value}',
|
||||
),
|
||||
),
|
||||
),
|
||||
}
|
||||
|
|
@ -494,8 +498,14 @@ class _DesktopControlsState extends ConsumerState<DesktopControls> {
|
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(mediaPlayback.position.readAbleDuration),
|
||||
Text("-${(mediaPlayback.duration - mediaPlayback.position).readAbleDuration}"),
|
||||
Text(
|
||||
mediaPlayback.position.readAbleDuration,
|
||||
style: Theme.of(context).textTheme.bodyMedium,
|
||||
),
|
||||
Text(
|
||||
"-${(mediaPlayback.duration - mediaPlayback.position).readAbleDuration}",
|
||||
style: Theme.of(context).textTheme.bodyMedium,
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue