Commit Graph

1826 Commits

Author SHA1 Message Date
f0da2a3397 doc: update docs/dart.md (#814)
### Current behavior
The current asynchronous login sample code has the following issues:
1. The `main` function tries to use `await userName()`, but `userName` is a string variable, not a function.
2. the `login` function should be called and `await` should be used to wait for its result.
### Expected behavior
The `main` function should correctly call the `login` function and use `await` to wait for the result, then print out the username.
### Sample code
Here is the corrected code:
```dart
Future<String> login() {
String userName = "Temidjoy";
return Future.delayed(
Duration(seconds: 4), () => userName
).
}
main() async {
print('Authenticating please wait...') The
String result = await login();
String result = await login(); print(result);
}
2024-08-15 09:09:47 +08:00
8963525b9a doc: Update README.md 2024-08-13 01:12:17 +08:00
4e1a4bb641 doc: Update README.md 2024-08-09 11:49:18 +08:00
1a37518aab doc: update docs/typescript.md 2024-08-09 11:36:02 +08:00
01757edbef doc: update README.md. 2024-08-09 03:29:20 +00:00
f36bb4bcbb doc: update CONTRIBUTING.md. 2024-08-09 03:29:18 +00:00
d42cbc7d2c doc: update docs/typescript.md 2024-08-09 11:27:33 +08:00
f80b5795bc doc: Update README.md (#102) 2024-08-01 20:31:56 +08:00
90b9b407b3 doc: Update github-actions.md 2024-07-29 03:21:29 +08:00
1a0415d432 doc: update README.md. 2024-07-28 15:35:23 +00:00
e6dab60332 doc: update CONTRIBUTING.md. 2024-07-28 15:35:22 +00:00
58991c482e doc: update docs/github-actions.md 2024-07-28 23:33:57 +08:00
eea1a03da8 doc: Update docs/jupyter.md 2024-07-28 22:57:23 +08:00
a3d3d4b0dd doc: Update linux-command.md (#807)
add zip/unzip commands
2024-07-27 23:21:56 +08:00
8c8b721015 doc: Update README.md #102 2024-07-26 15:36:35 +08:00
ec6d1677d6 doc: Update README.md #102 2024-07-25 01:58:15 +08:00
e25753169f doc: update README.md. 2024-07-24 16:04:12 +00:00
ca6a407ca8 doc: update CONTRIBUTING.md. 2024-07-24 16:04:11 +00:00
d7ea92c019 doc: update dart.md (#806)
* doc: update dart.md

* doc: update dart.md

完善 import 部分内容

* doc: update dart.md

修正翻译错误,将 “地图” 修改为 “映射”
2024-07-25 00:03:03 +08:00
f25137d53d feat: add jupyter (#803)
* feat: add jupyter note

* fix: alter note

* fix:add note
2024-07-21 15:09:00 +08:00
3e40d6e54f doc: Update README.md #102 2024-07-19 01:53:03 +08:00
145bdf9119 doc: update docs/git.md 2024-07-18 17:10:19 +08:00
daccdf940a doc: update README.md. 2024-07-17 14:46:28 +00:00
29b9e61adb doc: update CONTRIBUTING.md. 2024-07-17 14:46:27 +00:00
708329d8f2 doc: update golang.md (#802)
类型转换中补充了字符串与其他类型相互转换的方法
2024-07-17 22:45:13 +08:00
fac5af10c8 doc: update flutter.md (#800) 2024-07-15 18:15:44 +08:00
a45e63a966 doc: update dart.md (#801) 2024-07-15 18:15:09 +08:00
6c3b017099 doc: update README.md. 2024-07-14 14:51:40 +00:00
68aaed2cef doc: update CONTRIBUTING.md. 2024-07-14 14:51:39 +00:00
a05328f389 doc: Update README.md #102 2024-07-14 22:50:41 +08:00
707e939bf6 doc: update README.md. 2024-07-08 17:18:43 +00:00
94a5baec46 doc: update CONTRIBUTING.md. 2024-07-08 17:18:42 +00:00
0d7f6653b6 doc: Update README.md #786 2024-07-09 01:17:12 +08:00
4f4ac84ec9 doc: update README.md. 2024-07-08 17:13:41 +00:00
a8fbc4f8e1 doc: update CONTRIBUTING.md. 2024-07-08 17:13:40 +00:00
3cbec70a5e doc: Update vue.md (#786)
添加 vue3 watch 监听多个值的模板
2024-07-09 01:12:20 +08:00
8e9132f900 doc: Update docs/json.md 2024-07-05 12:02:13 +08:00
aadda3d5c5 doc: Update README.md 2024-07-02 22:15:10 +08:00
031b7f1976 doc: Update README.md #102 2024-06-29 18:42:46 +08:00
34bf61c2fb doc: Update README.md (#102) 2024-06-27 22:54:17 +08:00
3e05d637d3 doc: update stylex.md 2024-06-26 12:12:04 +08:00
658abb0e00 doc: update README.md. 2024-06-26 02:08:51 +00:00
5dc858cfe5 doc: update CONTRIBUTING.md. 2024-06-26 02:08:50 +00:00
29c4430e3a chore: update README.md (#677)
* Feat: 增加国内镜像网站

* chore: 调整网站名称
2024-06-26 10:07:45 +08:00
229193a584 released v1.44.0 v1.44.0 2024-06-25 23:49:41 +08:00
222f5bc604 feat: add stylex.md 2024-06-25 23:22:03 +08:00
4b22796c36 doc: update docs/dart.md 2024-06-25 23:22:03 +08:00
eb01adb655 doc: update docs/dart.md 2024-06-25 23:22:03 +08:00
ebc7ef957a doc: update docs/regex.md 2024-06-25 23:22:03 +08:00
91e0fb3af7 doc: add hook.md 2024-06-25 23:22:03 +08:00