59 lines
1.7 KiB
Dart
59 lines
1.7 KiB
Dart
/// Shared identity for the demo mode so fixtures across every feature describe
|
|
/// the same fictional student, class, teachers and rooms — the timetable, chats
|
|
/// and grades all line up. See DemoMode.
|
|
class DemoPersona {
|
|
const DemoPersona._();
|
|
|
|
static const String studentFirstName = 'Lena';
|
|
static const String studentName = 'Lena Hoffmann';
|
|
static const String className = '10b';
|
|
|
|
static const List<DemoTeacher> teachers = [
|
|
DemoTeacher('Herr Müller', 'MÜL', 'Mathematik'),
|
|
DemoTeacher('Frau Schmidt', 'SMT', 'Deutsch'),
|
|
DemoTeacher('Herr Weber', 'WEB', 'Englisch'),
|
|
DemoTeacher('Frau Becker', 'BEC', 'Biologie'),
|
|
DemoTeacher('Herr Hofmann', 'HOF', 'Physik'),
|
|
DemoTeacher('Frau Wagner', 'WAG', 'Geschichte'),
|
|
DemoTeacher('Herr Klein', 'KLN', 'Sport'),
|
|
DemoTeacher('Frau Richter', 'RIC', 'Religion'),
|
|
];
|
|
|
|
static const List<DemoSubject> subjects = [
|
|
DemoSubject('Mathematik', 'M', 0xFF4E79A7),
|
|
DemoSubject('Deutsch', 'D', 0xFFE15759),
|
|
DemoSubject('Englisch', 'E', 0xFFF28E2B),
|
|
DemoSubject('Biologie', 'BIO', 0xFF59A14F),
|
|
DemoSubject('Physik', 'PH', 0xFF76B7B2),
|
|
DemoSubject('Geschichte', 'GE', 0xFFB07AA1),
|
|
DemoSubject('Sport', 'SP', 0xFFEDC948),
|
|
DemoSubject('Religion', 'REL', 0xFF9C755F),
|
|
];
|
|
|
|
static const List<String> rooms = [
|
|
'A101',
|
|
'A102',
|
|
'B201',
|
|
'B203',
|
|
'C305',
|
|
'Turnhalle 1',
|
|
'Aula',
|
|
];
|
|
}
|
|
|
|
class DemoTeacher {
|
|
final String name;
|
|
final String short;
|
|
final String subject;
|
|
const DemoTeacher(this.name, this.short, this.subject);
|
|
}
|
|
|
|
class DemoSubject {
|
|
final String name;
|
|
final String short;
|
|
|
|
/// ARGB color used where the UI colors a lesson/subject.
|
|
final int color;
|
|
const DemoSubject(this.name, this.short, this.color);
|
|
}
|