From 198bd9ffce10d88238b2c8e07336d49e60439809 Mon Sep 17 00:00:00 2001 From: David Peters <46222898+peterscodee@users.noreply.github.com> Date: Wed, 23 Sep 2020 10:26:59 +0200 Subject: [PATCH] Update README.md --- README.md | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index dc88587..1de9dfc 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A lightweight flutter package to simplify the creation of a miniplayer by providing a builder function with the current height and percentage progress. The widget responds to tap and drag gestures and is highly customizable. **What is a miniplayer?** -Miniplayers are commonly used in media applications(e.g. Spotify, Youtube). A miniplayer can be expanded and minified and remains on the screen when minified until dismissed by the user. +Miniplayers are commonly used in media applications like Spotify and Youtube. A miniplayer can be expanded and minified and remains on the screen when minified until dismissed by the user. See the demo below for an example. ## Demo @@ -23,12 +23,12 @@ Miniplayer( ), ``` -##Options +## Options
onDismiss | -+ |
Miniplayer(
onDismiss: () {
@@ -39,27 +39,10 @@ Miniplayer(
),
|
- + | |
onDismiss | -
-
- Miniplayer(
- onDismiss: () {
- //If onDismiss is set,
- //the miniplayer can be dismissed
- //Handle onDismissed here e.g.
- },
- ),
-
- |
- - - | -