flutter_miniplayer/README.md

18 lines
464 B
Markdown
Raw Normal View History

2020-07-30 16:01:58 +02:00
[![Pub](https://img.shields.io/pub/v/miniplayer?color=2196F3)](https://pub.dev/packages/miniplayer)
2020-07-30 15:58:35 +02:00
2020-07-30 16:23:12 +02:00
A lightweight flutter package providing a miniplayer widget which resizes according to drag gestures and returns a builder function with the current height and percentage progress.
2020-07-29 22:13:39 +02:00
2020-07-30 17:02:14 +02:00
## Usuage
2020-07-29 22:13:39 +02:00
2020-07-30 17:02:14 +02:00
```dart
Miniplayer(
minHeight: 70,
maxHeight: 370,
builder: (height, percentage) {
return Center(
child: Text('$height, $percentage'),
);
},
),
```