Update README.md
This commit is contained in:
parent
6679813b1a
commit
c2c2984b18
14
README.md
14
README.md
|
@ -30,7 +30,7 @@ Miniplayer(
|
||||||
<tr>
|
<tr>
|
||||||
<th>Parameter</th>
|
<th>Parameter</th>
|
||||||
<th>Implementation</th>
|
<th>Implementation</th>
|
||||||
<th>Demo</th>
|
<th>Explanation</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>onDismiss</td>
|
<td>onDismiss</td>
|
||||||
|
@ -38,8 +38,6 @@ Miniplayer(
|
||||||
<pre lang="dart">
|
<pre lang="dart">
|
||||||
Miniplayer(
|
Miniplayer(
|
||||||
onDismiss: () {
|
onDismiss: () {
|
||||||
//If onDismiss is set,
|
|
||||||
//the miniplayer can be dismissed
|
|
||||||
//Handle onDismissed here
|
//Handle onDismissed here
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -47,6 +45,7 @@ Miniplayer(
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<img src="https://raw.githubusercontent.com/peterscodee/miniplayer/master/example/demo_gif/demo_dismiss.gif"/>
|
<img src="https://raw.githubusercontent.com/peterscodee/miniplayer/master/example/demo_gif/demo_dismiss.gif"/>
|
||||||
|
<p>If onDismiss is set, the miniplayer can be dismissed</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr></tr>
|
<tr></tr>
|
||||||
|
@ -54,13 +53,9 @@ Miniplayer(
|
||||||
<td>valueNotifier</td>
|
<td>valueNotifier</td>
|
||||||
<td>
|
<td>
|
||||||
<pre lang="dart">
|
<pre lang="dart">
|
||||||
//Allows you to use a global ValueNotifier
|
final ValueNotifier<double> playerExpandProgress =
|
||||||
//with the current progress.
|
|
||||||
//Can be used to hide the BottomNavigationBar.
|
|
||||||
final ValueNotifier<double> playerExpandProgress =
|
|
||||||
ValueNotifier(playerMinHeight);
|
ValueNotifier(playerMinHeight);
|
||||||
|
</br>
|
||||||
|
|
||||||
Miniplayer(
|
Miniplayer(
|
||||||
valueNotifier: playerExpandProgress,
|
valueNotifier: playerExpandProgress,
|
||||||
),
|
),
|
||||||
|
@ -68,6 +63,7 @@ Miniplayer(
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<img src="https://raw.githubusercontent.com/peterscodee/miniplayer/master/example/demo_gif/demo_valueNotifier.gif"/>
|
<img src="https://raw.githubusercontent.com/peterscodee/miniplayer/master/example/demo_gif/demo_valueNotifier.gif"/>
|
||||||
|
<p>Allows you to use a global ValueNotifier with the current progress. This can be used to hide the BottomNavigationBar.</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue