From 1261738d46b6103d5701f98cd2bccce2d9cbeccb Mon Sep 17 00:00:00 2001 From: Sergey Dmitriev <51058739+0niel@users.noreply.github.com> Date: Wed, 3 Jan 2024 16:53:13 +0300 Subject: [PATCH] ui: Add teacher icon to lesson card --- lib/schedule/widgets/lesson_card.dart | 45 +++++++++++++++++++-------- pubspec.yaml | 2 +- 2 files changed, 33 insertions(+), 14 deletions(-) diff --git a/lib/schedule/widgets/lesson_card.dart b/lib/schedule/widgets/lesson_card.dart index c579d32b..85b9a8d9 100644 --- a/lib/schedule/widgets/lesson_card.dart +++ b/lib/schedule/widgets/lesson_card.dart @@ -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, @@ -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, @@ -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), + ), + ], ), ], ], diff --git a/pubspec.yaml b/pubspec.yaml index 44f3b47a..bff9312b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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"