network addition
This commit is contained in:
parent
3bd713d667
commit
2099d3d64d
27 changed files with 2237 additions and 40 deletions
|
|
@ -49,7 +49,7 @@ class _CassetteViewState extends ConsumerState<CassetteView>
|
|||
if (dt <= 0) return;
|
||||
// Read (not watch) inside the ticker: the model drives repaints itself, and
|
||||
// watching here would rebuild the whole widget every position tick.
|
||||
final s = ref.read(playbackProvider);
|
||||
final s = ref.read(activePlaybackProvider);
|
||||
_model.update(dt: dt, playing: s.playing && s.supported, progress: s.progress);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,11 +18,11 @@ class MiniPlayer extends ConsumerWidget {
|
|||
if (ref.watch(selectedTabProvider) == nowPlayingTabIndex) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
final current = ref.watch(playbackProvider.select((s) => s.current));
|
||||
final current = ref.watch(activePlaybackProvider.select((s) => s.current));
|
||||
if (current == null) return const SizedBox.shrink();
|
||||
|
||||
final playing = ref.watch(playbackProvider.select((s) => s.playing));
|
||||
final controller = ref.read(playbackProvider.notifier);
|
||||
final playing = ref.watch(activePlaybackProvider.select((s) => s.playing));
|
||||
final controller = ref.read(playbackCommandsProvider);
|
||||
final client = ref.watch(subsonicClientProvider);
|
||||
final accent = Theme.of(context).colorScheme.primary;
|
||||
final artUri = (client != null && current.coverArt != null)
|
||||
|
|
@ -112,7 +112,7 @@ class _MiniProgress extends ConsumerWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final progress = ref.watch(playbackProvider.select((s) => s.progress));
|
||||
final progress = ref.watch(activePlaybackProvider.select((s) => s.progress));
|
||||
final accent = Theme.of(context).colorScheme.primary;
|
||||
return SizedBox(
|
||||
height: 2,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue