forked from firka/student-legacy
almost finished lesson tile
This commit is contained in:
parent
34ca1c51a0
commit
6ec9f84eab
@ -158,7 +158,7 @@ class LessonTile extends StatelessWidget {
|
|||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
fontSize: 15.5,
|
fontSize: 16.5,
|
||||||
color: AppColors.of(context)
|
color: AppColors.of(context)
|
||||||
.text
|
.text
|
||||||
.withOpacity(!lesson.isEmpty ? 1.0 : 0.5),
|
.withOpacity(!lesson.isEmpty ? 1.0 : 0.5),
|
||||||
@ -167,18 +167,61 @@ class LessonTile extends StatelessWidget {
|
|||||||
? FontStyle.italic
|
? FontStyle.italic
|
||||||
: null),
|
: null),
|
||||||
),
|
),
|
||||||
subtitle: description != ""
|
subtitle: Column(
|
||||||
? Text(
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
description,
|
children: [
|
||||||
style: const TextStyle(
|
Row(
|
||||||
fontWeight: FontWeight.w500,
|
children: [
|
||||||
fontSize: 14.0,
|
Container(
|
||||||
),
|
padding: const EdgeInsets.symmetric(
|
||||||
maxLines: 1,
|
horizontal: 6.0, vertical: 3.5),
|
||||||
softWrap: false,
|
decoration: BoxDecoration(
|
||||||
overflow: TextOverflow.ellipsis,
|
color: Theme.of(context)
|
||||||
)
|
.colorScheme
|
||||||
: null,
|
.secondary
|
||||||
|
.withOpacity(.15),
|
||||||
|
borderRadius: BorderRadius.circular(10.0),
|
||||||
|
),
|
||||||
|
child: Text(
|
||||||
|
lesson.room,
|
||||||
|
style: TextStyle(
|
||||||
|
height: 1.1,
|
||||||
|
fontSize: 12.5,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
color: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.secondary
|
||||||
|
.withOpacity(.9),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
const SizedBox(
|
||||||
|
height: 10.0,
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
lesson.description,
|
||||||
|
maxLines: 1,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
textAlign: TextAlign.start,
|
||||||
|
style: const TextStyle(fontSize: 14.0),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
|
||||||
|
// subtitle: description != ""
|
||||||
|
// ? Text(
|
||||||
|
// description,
|
||||||
|
// style: const TextStyle(
|
||||||
|
// fontWeight: FontWeight.w500,
|
||||||
|
// fontSize: 14.0,
|
||||||
|
// ),
|
||||||
|
// maxLines: 1,
|
||||||
|
// softWrap: false,
|
||||||
|
// overflow: TextOverflow.ellipsis,
|
||||||
|
// )
|
||||||
|
// : null,
|
||||||
minLeadingWidth: 34.0,
|
minLeadingWidth: 34.0,
|
||||||
leading: AspectRatio(
|
leading: AspectRatio(
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
@ -251,25 +294,25 @@ class LessonTile extends StatelessWidget {
|
|||||||
? Row(
|
? Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
if (!swapDesc)
|
// if (!swapDesc)
|
||||||
SizedBox(
|
// SizedBox(
|
||||||
width: 52.0,
|
// width: 52.0,
|
||||||
child: Padding(
|
// child: Padding(
|
||||||
padding: const EdgeInsets.only(right: 6.0),
|
// padding: const EdgeInsets.only(right: 6.0),
|
||||||
child: Text(
|
// child: Text(
|
||||||
room,
|
// room,
|
||||||
textAlign: TextAlign.center,
|
// textAlign: TextAlign.center,
|
||||||
overflow: TextOverflow.ellipsis,
|
// overflow: TextOverflow.ellipsis,
|
||||||
maxLines: 2,
|
// maxLines: 2,
|
||||||
style: TextStyle(
|
// style: TextStyle(
|
||||||
fontWeight: FontWeight.w500,
|
// fontWeight: FontWeight.w500,
|
||||||
color: AppColors.of(context)
|
// color: AppColors.of(context)
|
||||||
.text
|
// .text
|
||||||
.withOpacity(.75),
|
// .withOpacity(.75),
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
Stack(
|
Stack(
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
children: [
|
children: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user