Skip to content

Commit 9859cc4

Browse files
authored
modify:修改develop.md文件内容
1 parent d9cfd02 commit 9859cc4

File tree

1 file changed

+11
-19
lines changed

1 file changed

+11
-19
lines changed

readme/develop.md

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,33 @@
44
##### 文件夹小写“单”词,复合词建议用中划线隔开
55
```
66
lib
7-
|--components
8-
|--page
9-
|--app-login
7+
|--components
8+
|--page
9+
|--app-login
1010
```
1111

1212
*不建议以下写法 *
1313
```
1414
lib
15-
|--common_component 【X】
16-
|--commonComponent 【X】
17-
|--homepage 【X】
15+
|--common_component 【X】
16+
|--commonComponent 【X】
17+
|--homepage 【X】
1818
```
1919
##### 文件名小写,多词建议用下划线
2020
```
2121
lib
22-
|--components
23-
|--webview_component.dart
24-
|--page
22+
|--components
23+
|--webview_component.dart
24+
|--page
2525
```
2626

2727
*不建议以下写法 *
2828
```
2929
lib
30-
|--commonComponent.dart 【X】
31-
|--home-page.dart 【X】
30+
|--commonComponent.dart 【X】
31+
|--home-page.dart 【X】
3232
```
3333

34-
-----------------------
3534

3635
### 引入库、类规范
3736

@@ -63,7 +62,6 @@ import 'utils.dart' as Utils;
6362
import 'package:efox_flutter/utils/local_storage.dart' show LocalStorage;
6463
```
6564

66-
-----------------------
6765

6866
### 类命名规范
6967

@@ -77,7 +75,6 @@ class DemoClass {
7775
class A { ... }
7876
```
7977

80-
-----------------------
8178

8279
### 变量命名规范
8380
##### 常量建议使用小驼峰进行命名
@@ -110,7 +107,6 @@ var name;
110107
var name = null;
111108
```
112109

113-
-----------------------
114110

115111
### 流程控制
116112
##### 减少else使用
@@ -128,7 +124,6 @@ print('user name is ${user.name}')
128124
print('their are $name and ${user.name})
129125
```
130126

131-
-----------------------
132127

133128
### 注释
134129
##### 代码行内注释建议使用//
@@ -144,7 +139,6 @@ String getName (User user) {
144139
const pi = 3.14;
145140
```
146141

147-
-----------------------
148142

149143
### 类规范
150144

@@ -181,7 +175,6 @@ Widget build(BuildContext context) {
181175
}
182176
```
183177

184-
-----------------------
185178

186179
### Future使用
187180

@@ -194,7 +187,6 @@ Future request(String path) async {
194187
}
195188
```
196189

197-
-----------------------
198190

199191

200192

0 commit comments

Comments
 (0)