mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-06 11:09:28 +00:00
17 lines
561 B
Dart
17 lines
561 B
Dart
|
|
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(),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|