-
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.
- Loading branch information
Yuta1409
committed
Mar 15, 2024
1 parent
3455eae
commit 00fe001
Showing
3 changed files
with
74 additions
and
43 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
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/cupertino.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_svg/svg.dart'; | ||
|
||
class UserClassCard extends StatelessWidget { | ||
final String className; | ||
final String firstName; | ||
|
||
UserClassCard({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), | ||
), | ||
), | ||
); | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
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,35 @@ | ||
import 'package:flutter/cupertino.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_svg/svg.dart'; | ||
|
||
class UserInfoCard extends StatelessWidget { | ||
final String ine; | ||
final String birthDate; | ||
|
||
UserInfoCard({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), | ||
), | ||
), | ||
); | ||
} | ||
} |