-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from B3-3iL-DLW/feat/create-profil-page
Feat/create profil page
- Loading branch information
Showing
5 changed files
with
115 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: <Widget>[ | ||
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(), | ||
], | ||
), | ||
); | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
frontend/app_student/lib/profils/views/widgets/class_group_button.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<TextStyle>( | ||
const TextStyle( | ||
fontSize: 16.0, | ||
fontWeight: FontWeight.bold, | ||
), | ||
), | ||
backgroundColor: MaterialStateProperty.all<Color>( | ||
Theme.of(context).focusColor), | ||
foregroundColor: MaterialStateProperty.all<Color>(Colors.white), | ||
shape: MaterialStateProperty.all<RoundedRectangleBorder>( | ||
RoundedRectangleBorder( | ||
borderRadius: BorderRadius.circular(3.0), | ||
), | ||
), | ||
), | ||
onPressed: () { | ||
GoRouter.of(context).go('/class-list'); | ||
}, | ||
child: const Text('Changer de classe'), | ||
), | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} |