-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2. Add some assert
- Loading branch information
duwen
committed
Feb 22, 2019
1 parent
2bbbd0a
commit bfae835
Showing
2 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ main() async { | |
"https://cdn.jsdelivr.net/gh/flutterchina/[email protected]/docs/imgs/book.jpg"; | ||
|
||
// var url = "https://www.baidu.com/img/bdlogo.gif"; | ||
await download1(dio, url, "./example/book1.jpg"); | ||
// await download1(dio, url, "./example/book1.jpg"); | ||
await download1(dio, url, (HttpHeaders headers)=>"./example/book1.jpg"); | ||
//await download2(dio, url, "./example/book2.jpg"); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters