miniplayer
1.0.1, released 5 years ago by acquaint5690.top
A lightweight flutter package to simplify the creation of a miniplayer.
WASM-ready
What it does
Provides a customizable miniplayer widget that responds to tap and drag gestures. It can be expanded and minified, mimicking common media applications like Spotify and YouTube.
AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a media application that requires a persistent expand/collapse miniplayer.
- You want a widget that handles drag gestures for height expansion and dismissal.
Skip it when
- You need complex audio playback logic (this package only handles the UI/layout component).
Strengths
- Simplifies the creation of expandable miniplayers with height and progress tracking.
- Supports tap and natural drag gestures.
- Provides examples for persistence using standard Navigator or custom stacks.
Weaknesses
- API for onDismiss is marked as deprecated and requires replacement with onDismissed.
- Limited to vertical gestures.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Stack(
children: <Widget>[
YourApp(),
Miniplayer(
minHeight: 70,
maxHeight: 370,
builder: (height, percentage) {
return Center(
child: Text('$height, $percentage'),
);
},
),
],
)