-
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 #44 from B3-3iL-DLW/ui/configuration_menu
♻️: l10n and add route profil page
- Loading branch information
Showing
6 changed files
with
132 additions
and
52 deletions.
There are no files selected for viewing
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
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
35 changes: 35 additions & 0 deletions
35
frontend/app_student/lib/profils/views/widgets/user_class_card.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,35 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_svg/svg.dart'; | ||
|
||
class UserClassCard extends StatelessWidget { | ||
final String className; | ||
final String firstName; | ||
|
||
const UserClassCard( | ||
{super.key, required this.className, required this.firstName}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return 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: Text(className), | ||
subtitle: Text(firstName), | ||
), | ||
), | ||
); | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
frontend/app_student/lib/profils/views/widgets/user_info_card.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,34 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_svg/svg.dart'; | ||
|
||
class UserInfoCard extends StatelessWidget { | ||
final String ine; | ||
final String birthDate; | ||
|
||
const UserInfoCard({super.key, required this.ine, required this.birthDate}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return 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: Text(ine), | ||
subtitle: Text(birthDate), | ||
), | ||
), | ||
); | ||
} | ||
} |
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