Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b8fd952

Browse files
modify
完善md文件
1 parent eb8d625 commit b8fd952

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

‎flutter_provide/provideMulti.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
* [provide](https://pub.dartlang.org/packages/provide)
1111
* [scoped_model](https://pub.dartlang.org/flutter/packages?q=scoped_model)
1212

13-
#### 基本使用provide
14-
* 初始化
13+
#### 初始化
1514
```
16-
///
15+
/// UserModel
1716
class UserModel with ChangeNotifier {
1817
String name = 'Wanwu';
1918
setAge(val) {
@@ -50,7 +49,7 @@ init({child, dispose = true}) {
5049
/// main
5150
void main() => runApp(init(child: MainApp()));
5251
```
53-
* 分析ProvideMulti
52+
#### 分析ProvideMulti
5453
```
5554
ProvideMulti(
5655
builder: builder,
@@ -63,7 +62,7 @@ builder: (context, child, model)返回context, child, ProvidedValues值,P
6362
requestedValues: []数组类型,即传入数据模型对应的namespace,需要使用哪个就传入哪个。[UserModel, ConfigModel]
6463
child: 传入组件,在build中返回
6564

66-
* 使用
65+
#### 使用
6766
```
6867
ProvideMulti(
6968
builder:(context, child, model) {
@@ -78,6 +77,5 @@ ProvideMulti(
7877
)
7978
```
8079

81-
可在项目中进行尝试与使用ProvideMulti。
82-
源码可参考[flutter-ui中关于flutter_provide应用](https://github.com/efoxTeam/flutter-demo/tree/master/flutter_provide)
83-
欢迎交流~
80+
* 源码可参考[flutter-ui中关于flutter_provide应用](https://github.com/efoxTeam/flutter-demo/tree/master/flutter_provide)
81+
* 欢迎交流~

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /