fix: content behind miniplayer not visible (#53)

This commit is contained in:
Dr.Blank 2024-10-06 05:45:14 -04:00 committed by GitHub
parent e8903081b7
commit 09eafb2c28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 59 additions and 4 deletions

View file

@ -0,0 +1,16 @@
import 'package:flutter/material.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:vaani/features/player/providers/player_form.dart';
class MiniPlayerBottomPadding extends HookConsumerWidget {
const MiniPlayerBottomPadding({super.key});
@override
Widget build(BuildContext context, WidgetRef ref) {
return AnimatedSize(
duration: const Duration(milliseconds: 200),
child: ref.watch(isPlayerActiveProvider)
? const SizedBox(height: playerMinHeight + 8)
: const SizedBox.shrink(),
);
}
}