diff --git a/frontend/app_student/assets/images/student-info.svg b/frontend/app_student/assets/images/student-info.svg new file mode 100644 index 0000000..6ac60ae --- /dev/null +++ b/frontend/app_student/assets/images/student-info.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/app_student/assets/images/user.svg b/frontend/app_student/assets/images/user.svg new file mode 100644 index 0000000..30cbd7d --- /dev/null +++ b/frontend/app_student/assets/images/user.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/app_student/lib/main_prod.dart b/frontend/app_student/lib/main_prod.dart index 7982f2b..d8d39ad 100644 --- a/frontend/app_student/lib/main_prod.dart +++ b/frontend/app_student/lib/main_prod.dart @@ -1,5 +1,5 @@ import 'package:app_student/config/prod_config.dart'; -import 'package:app_student/login/views/login_page.dart'; +import 'package:app_student/profils/views/profil_page.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; @@ -25,7 +25,7 @@ class MyApp extends StatelessWidget { primarySwatch: Colors.blue, focusColor: const Color(0xffE84E0F), ), - home: const LoginPage(), + home: const ProfilPage(), ); } } diff --git a/frontend/app_student/lib/profils/views/profil_page.dart b/frontend/app_student/lib/profils/views/profil_page.dart new file mode 100644 index 0000000..5479b0b --- /dev/null +++ b/frontend/app_student/lib/profils/views/profil_page.dart @@ -0,0 +1,67 @@ +import 'package:app_student/class_groups/views/widgets/header/header_text.dart'; +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'; + +class ProfilPage extends StatelessWidget { + const ProfilPage({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Column( + children: [ + const HeaderLogo(), + const Padding( + padding: EdgeInsets.all(15.0), + child: HeaderText('Quel beau profil ####### !'), + ), + Padding( + padding: const EdgeInsets.all(30.0), + child: Card( + child: ListTile( + leading: SizedBox( + width: 50, + child: ColorFiltered( + colorFilter: const ColorFilter.mode( + Color(0xFF005067), BlendMode.srcIn), + child: SvgPicture.asset( + 'assets/images/user.svg', + width: 30, + height: 30, + ), + ), + ), + title: const Text('Classe'), + subtitle: const Text('Nom du user'), + ), + ), + ), + Padding( + padding: const EdgeInsets.all(30.0), + child: Card( + child: ListTile( + leading: SizedBox( + width: 50, + child: ColorFiltered( + colorFilter: const ColorFilter.mode( + Color(0xFF005067), BlendMode.srcIn), + child: SvgPicture.asset( + 'assets/images/student-info.svg', + width: 30, + height: 30, + ), + ), + ), + title: const Text('ISBN'), + subtitle: const Text('dd/mm/yyyy'), + ), + ), + ), + const ClassGroupButton(), + ], + ), + ); + } +} diff --git a/frontend/app_student/lib/profils/views/widgets/class_group_button.dart b/frontend/app_student/lib/profils/views/widgets/class_group_button.dart new file mode 100644 index 0000000..1646a31 --- /dev/null +++ b/frontend/app_student/lib/profils/views/widgets/class_group_button.dart @@ -0,0 +1,44 @@ +import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; + +class ClassGroupButton extends StatelessWidget { + const ClassGroupButton({super.key}); + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.only(left: 25.0, top: 80.0, right: 25.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SizedBox( + width: double.infinity, + height: 50.0, + child: ElevatedButton( + style: ButtonStyle( + textStyle: MaterialStateProperty.all( + const TextStyle( + fontSize: 16.0, + fontWeight: FontWeight.bold, + ), + ), + backgroundColor: MaterialStateProperty.all( + Theme.of(context).focusColor), + foregroundColor: MaterialStateProperty.all(Colors.white), + shape: MaterialStateProperty.all( + RoundedRectangleBorder( + borderRadius: BorderRadius.circular(3.0), + ), + ), + ), + onPressed: () { + GoRouter.of(context).go('/class-list'); + }, + child: const Text('Changer de classe'), + ), + ), + ], + ), + ); + } +}