This commit is contained in:
Kima 2024-05-12 12:10:34 +02:00
parent 308c8f966f
commit c205bc592c
3 changed files with 10 additions and 0 deletions

View File

@ -11,6 +11,7 @@ class Student {
String? address; String? address;
String? groupId; String? groupId;
List<String> parents; List<String> parents;
// List<String> parentsPhone;
String? className; String? className;
Student({ Student({
@ -21,6 +22,7 @@ class Student {
required this.yearId, required this.yearId,
this.address, this.address,
required this.parents, required this.parents,
// required this.parentsPhone,
this.json, this.json,
}); });

View File

@ -56,6 +56,13 @@ class AccountView extends StatelessWidget {
Detail( Detail(
title: "parents".plural(user.student.parents.length), title: "parents".plural(user.student.parents.length),
description: user.student.parents.join(", ")), description: user.student.parents.join(", ")),
const SizedBox(
height: 10.0,
),
// Detail(
// title: "parents".i18n,
// description: user.student.parents.join(", ")),
Detail(title: "school".i18n, description: user.student.school.name),
], ],
), ),
); );

View File

@ -9,6 +9,7 @@ extension Localization on String {
"class": "Class", "class": "Class",
"address": "Home address", "address": "Home address",
"parents": "Parents".one("Parent"), "parents": "Parents".one("Parent"),
"parents_phone": "Parents' phone number: ".one("Parent"),
}, },
"hu_hu": { "hu_hu": {
"birthdate": "Születési dátum", "birthdate": "Születési dátum",