Compare commits
5 Commits
3.0.0-beta
...
3.0.0-beta
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74831c3e56 | ||
|
|
9d3347d680 | ||
|
|
25100ab7d9 | ||
|
|
b509adcbc9 | ||
|
|
d421ae9031 |
@@ -20,7 +20,13 @@ class FilcAPI {
|
|||||||
http.Response res = await http.get(Uri.parse(SCHOOL_LIST));
|
http.Response res = await http.get(Uri.parse(SCHOOL_LIST));
|
||||||
|
|
||||||
if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
return (jsonDecode(res.body) as List).cast<Map>().map((json) => School.fromJson(json)).toList();
|
List<School> schools = (jsonDecode(res.body) as List).cast<Map>().map((json) => School.fromJson(json)).toList();
|
||||||
|
schools.add(School(
|
||||||
|
city: "Tiszabura",
|
||||||
|
instituteCode: "supporttest-reni-tiszabura-teszt01",
|
||||||
|
name: "FILC Éles Reni tiszabura-teszt",
|
||||||
|
));
|
||||||
|
return schools;
|
||||||
} else {
|
} else {
|
||||||
throw "HTTP ${res.statusCode}: ${res.body}";
|
throw "HTTP ${res.statusCode}: ${res.body}";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ extension StringFormatUtils on String {
|
|||||||
|
|
||||||
String capital() => this.length > 0 ? this[0].toUpperCase() + this.substring(1) : "";
|
String capital() => this.length > 0 ? this[0].toUpperCase() + this.substring(1) : "";
|
||||||
|
|
||||||
String capitalize() => this.split(" ").map((w) => this.capital()).join(" ");
|
String capitalize() => this.split(" ").map((w) => w.capital()).join(" ");
|
||||||
|
|
||||||
String escapeHtml() {
|
String escapeHtml() {
|
||||||
String htmlString = this;
|
String htmlString = this;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ description: "Nem hivatalos e-napló alkalmazás az e-Kréta rendszerhez"
|
|||||||
homepage: https://filcnaplo.hu
|
homepage: https://filcnaplo.hu
|
||||||
publish_to: "none"
|
publish_to: "none"
|
||||||
|
|
||||||
version: 3.0.0-beta.4+126
|
version: 3.0.0-beta.5+127
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.12.0 <3.0.0"
|
sdk: ">=2.12.0 <3.0.0"
|
||||||
|
|||||||
Submodule filcnaplo_kreta_api updated: f1e5a2bb29...7274a9d58f
Submodule filcnaplo_mobile_ui updated: 5048994691...bbb0fcf4fc
Reference in New Issue
Block a user