Skip to content

Commit

Permalink
ui: Add teacher icon to lesson card
Browse files Browse the repository at this point in the history
  • Loading branch information
0niel committed Jan 3, 2024
1 parent 6475c6b commit 1261738
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 14 deletions.
45 changes: 32 additions & 13 deletions lib/schedule/widgets/lesson_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,15 @@ class LessonCard extends StatelessWidget {
height: 4,
),
Row(
crossAxisAlignment: CrossAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
FaIcon(
FontAwesomeIcons.mapLocation,
size: 12,
color: AppTheme.colors.deactive,
Padding(
padding: const EdgeInsets.only(top: 2),
child: FaIcon(
FontAwesomeIcons.mapLocation,
size: 12,
color: AppTheme.colors.deactive,
),
),
const SizedBox(
width: 6.5,
Expand All @@ -208,11 +211,15 @@ class LessonCard extends StatelessWidget {
height: 4,
),
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
FaIcon(
FontAwesomeIcons.users,
size: 12,
color: AppTheme.colors.deactive,
Padding(
padding: const EdgeInsets.only(top: 2),
child: FaIcon(
FontAwesomeIcons.users,
size: 12,
color: AppTheme.colors.deactive,
),
),
const SizedBox(
width: 6,
Expand All @@ -231,10 +238,22 @@ class LessonCard extends StatelessWidget {
const SizedBox(
height: 4,
),
Text(
lesson.teachers.map((e) => e.name).join(', '),
style: AppTextStyle.body
.copyWith(color: AppTheme.colors.deactive),
Row(
children: [
FaIcon(
FontAwesomeIcons.userTie,
size: 12,
color: AppTheme.colors.deactive,
),
const SizedBox(
width: 9,
),
Text(
lesson.teachers.map((e) => e.name).join(', '),
style: AppTextStyle.body.copyWith(
color: AppTheme.colors.deactive),
),
],
),
],
],
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ publish_to: 'none'
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.4.1+50
version: 1.4.1+51

environment:
sdk: ">=3.1.1"
Expand Down

0 comments on commit 1261738

Please sign in to comment.