Skip to content

Commit ef9b673

Browse files
committed
chore: updated README.md
1 parent a92e553 commit ef9b673

1 file changed

Lines changed: 4 additions & 15 deletions

File tree

README.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# phasetida_flutter
2-
[![Version](https://img.shields.io/badge/version-0.2.0-red.svg)]()
2+
[![Version](https://img.shields.io/badge/version-0.3.1-red.svg)]()
33
[phasetida-core](https://github.com/phasetida/phasetida-core)的Flutter包装
44

55
## 安装
@@ -10,26 +10,15 @@
1010
# ...
1111
phasetida_flutter:
1212
git: https://github.com/phasetida/phasetida_flutter.git
13-
ref: "0.2.0"
13+
ref: "0.3.1"
1414
```
1515
2. 运行命令来更新项目
1616
```bash
1717
flutter pub get
1818
```
1919

2020
## 使用
21-
这个包添加了一个Widget,即``PhigrosSimulatorRenderWidget````PhigrosChartPlayerShellWidget``,前者为后者的包装,推荐使用前者。简单的使用方法大致如下:
22-
```dart
23-
PhigrosChartPlayerShellWidget(
24-
jsonData: /* add your chart json data here*/,
25-
songName: /* for ui display */,
26-
author: /* for ui display */,
27-
chartComposer: /* for ui display */,
28-
quitCallback: () { /* the behavior of clicking back button in widget*/
29-
Navigator.pop(context);
30-
},
31-
)
32-
```
21+
这个包添加了两个Widget,即``PhigrosChartPlayerShellWidget````PhigrosSimulatorRenderWidget``,前者为后者的包装,推荐使用前者。
3322
如果想要更加精细的控制,请包装``PhigrosSimulatorRenderWidget``
3423

3524
## 贡献者
@@ -38,4 +27,4 @@ PhigrosChartPlayerShellWidget(
3827
|:-:|:-:|
3928
|[![](https://github.com/qianmo2233.png/?size=128)](https://github.com/qianmo2233)|
4029
|[@qianmo2233](https://github.com/qianmo2233)|
41-
|拯救了这个包原先丑陋的UI和糟糕的用户体验||
30+
|拯救了这个包原先丑陋的UI和糟糕的用户体验|

0 commit comments

Comments
 (0)