mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Update README per recommendations from Seth:
https://github.com/domokit/sky_sdk/pull/2 https://github.com/domokit/sky_sdk/pull/3 R=sethladd@google.com, ianh@google.com Review URL: https://codereview.chromium.org/1091613002
This commit is contained in:
parent
c8d918efa9
commit
22d00b5cd7
@ -64,10 +64,9 @@ ergonomic interface:
|
||||
```dart
|
||||
import 'package:sky/framework/net/fetch.dart';
|
||||
|
||||
void main() {
|
||||
fetch('example.txt').then((Response response) {
|
||||
print(response.bodyAsString());
|
||||
});
|
||||
main() async {
|
||||
var response = await fetch('example.txt');
|
||||
print(response.bodyAsString());
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user