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

View File

@ -56,6 +56,13 @@ class AccountView extends StatelessWidget {
Detail(
title: "parents".plural(user.student.parents.length),
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",
"address": "Home address",
"parents": "Parents".one("Parent"),
"parents_phone": "Parents' phone number: ".one("Parent"),
},
"hu_hu": {
"birthdate": "Születési dátum",