Skip to content

Commit

Permalink
♻️: l10n and add route profil page
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuta1409 committed Mar 15, 2024
1 parent 61b06bb commit c6b20f4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
6 changes: 5 additions & 1 deletion frontend/app_student/lib/l10n/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,9 @@
"@roomLabel": {
"description": "Label pour la salle",
"example": "Salle"
},
"profilMessageTitle": "Quel beau profil,",
"@profilMessageTitle": {
"description": "Message d'accueil de la page de profil"
}
}
}
9 changes: 6 additions & 3 deletions frontend/app_student/lib/profils/views/profil_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:app_student/profils/views/widgets/class_group_button.dart';
import 'package:flutter/material.dart';
import 'package:app_student/login/widgets/header/header_logo.dart';
import 'package:flutter_svg/svg.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';

class ProfilPage extends StatelessWidget {
const ProfilPage({super.key});
Expand All @@ -14,9 +15,11 @@ class ProfilPage extends StatelessWidget {
body: Column(
children: <Widget>[
const HeaderLogo(),
const Padding(
padding: EdgeInsets.all(15.0),
child: HeaderText('Quel beau profil ####### !'),
Padding(
padding: const EdgeInsets.all(15.0),
child: HeaderText(
AppLocalizations.of(context)!.profilMessageTitle,
),
),
Padding(
padding: const EdgeInsets.all(30.0),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:app_student/routes.dart';
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';

Expand Down Expand Up @@ -32,7 +33,7 @@ class ClassGroupButton extends StatelessWidget {
),
),
onPressed: () {
GoRouter.of(context).go('/class-list');
GoRouter.of(context).go(AppRoutes.classListPage);
},
child: const Text('Changer de classe'),
),
Expand Down

0 comments on commit c6b20f4

Please sign in to comment.