trim
This commit is contained in:
@@ -7,7 +7,7 @@ class SubjectIcon {
|
|||||||
static IconData? lookup({Subject? subject, String? subjectName}) {
|
static IconData? lookup({Subject? subject, String? subjectName}) {
|
||||||
assert(!(subject == null && subjectName == null));
|
assert(!(subject == null && subjectName == null));
|
||||||
|
|
||||||
String name = subject?.name.toLowerCase().specialChars() ?? subjectName ?? "";
|
String name = subject?.name.toLowerCase().specialChars().trim() ?? subjectName ?? "";
|
||||||
String category = subject?.category.description.toLowerCase().specialChars() ?? "";
|
String category = subject?.category.description.toLowerCase().specialChars() ?? "";
|
||||||
|
|
||||||
// todo: check for categories
|
// todo: check for categories
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ class Supporter {
|
|||||||
|
|
||||||
factory Supporter.fromJson(Map json) {
|
factory Supporter.fromJson(Map json) {
|
||||||
return Supporter(
|
return Supporter(
|
||||||
json["name"] ?? "",
|
(json["name"] ?? "").trim(),
|
||||||
json["amount"] ?? "",
|
json["amount"] ?? "",
|
||||||
json["platform"] ?? "",
|
json["platform"] ?? "",
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ class User {
|
|||||||
instituteCode: map["institute_code"],
|
instituteCode: map["institute_code"],
|
||||||
username: map["username"],
|
username: map["username"],
|
||||||
password: map["password"],
|
password: map["password"],
|
||||||
name: map["name"],
|
name: map["name"].trim(),
|
||||||
student: Student.fromJson(jsonDecode(map["student"])),
|
student: Student.fromJson(jsonDecode(map["student"])),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Submodule filcnaplo_kreta_api updated: a35587d449...168ff77d96
Reference in New Issue
Block a user