This is the source code of one of my blog post. To read the full blog post please click here.
This file contains hidden or 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
/* | |
* 類別定義及取用 | |
* */ | |
//匯入套件 | |
import "dart:convert" as conv; | |
import "package:http/http.dart" as http; | |
class User { | |
//類別元素 |
This file contains hidden or 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
/* | |
* 類別定義及取用 | |
* */ | |
//匯入套件 | |
import "dart:convert" as conv; | |
class User { | |
//類別元素 |
This file contains hidden or 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
import "dart:convert" as convert; | |
import "package:http/http.dart" as http; | |
Future <List<dynamic>> getRemoteSystemData(String remoteUri) async { | |
Uri multipleItemUrl=Uri.parse(remoteUri); | |
http.Response multipleResposnes= await http.get(multipleItemUrl); | |
List<dynamic> jsonArrayFromRsmote= convert.jsonDecode(multipleResposnes.body); | |
return jsonArrayFromRsmote; | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>A simple clock</title> | |
</head> | |
<body translate="no" > |