Miniplayer constructor
const
Miniplayer({
- Key? key,
- required double minHeight,
- required double maxHeight,
- required MiniplayerBuilder builder,
- Curve curve = Curves.easeOut,
- double elevation = 0,
- Color backgroundColor = const Color(0x70000000),
- ValueNotifier<
double> ? valueNotifier, - Duration duration = const Duration(milliseconds: 300),
- Function? onDismiss,
- Function? onDismissed,
- MiniplayerController? controller,
Implementation
const Miniplayer({
Key? key,
required this.minHeight,
required this.maxHeight,
required this.builder,
this.curve = Curves.easeOut,
this.elevation = 0,
this.backgroundColor = const Color(0x70000000),
this.valueNotifier,
this.duration = const Duration(milliseconds: 300),
this.onDismiss,
this.onDismissed,
this.controller,
}) : super(key: key);