forked from firka/student-legacy
removed splash from notetile
This commit is contained in:
parent
4b0726f939
commit
1cd1d7ae88
@ -15,34 +15,40 @@ class NoteTile extends StatelessWidget {
|
|||||||
type: MaterialType.transparency,
|
type: MaterialType.transparency,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: padding ?? const EdgeInsets.symmetric(horizontal: 8.0),
|
padding: padding ?? const EdgeInsets.symmetric(horizontal: 8.0),
|
||||||
child: ListTile(
|
child: Theme(
|
||||||
visualDensity: VisualDensity.compact,
|
data: Theme.of(context).copyWith(
|
||||||
contentPadding: const EdgeInsets.only(left: 8.0, right: 12.0),
|
highlightColor: Colors.transparent,
|
||||||
onTap: onTap,
|
splashColor: Colors.transparent,
|
||||||
shape:
|
|
||||||
RoundedRectangleBorder(borderRadius: BorderRadius.circular(14.0)),
|
|
||||||
leading: ProfileImage(
|
|
||||||
isNotePfp: true,
|
|
||||||
name: (note.teacher.isRenamed
|
|
||||||
? note.teacher.renamedTo
|
|
||||||
: note.teacher.name) ??
|
|
||||||
'',
|
|
||||||
radius: 19.2,
|
|
||||||
backgroundColor: Theme.of(context).colorScheme.secondary,
|
|
||||||
),
|
),
|
||||||
title: Text(
|
child: ListTile(
|
||||||
note.title,
|
visualDensity: VisualDensity.compact,
|
||||||
maxLines: 2,
|
contentPadding: const EdgeInsets.only(left: 8.0, right: 12.0),
|
||||||
overflow: TextOverflow.ellipsis,
|
onTap: onTap,
|
||||||
style: const TextStyle(fontWeight: FontWeight.w600),
|
shape: RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.circular(14.0)),
|
||||||
|
leading: ProfileImage(
|
||||||
|
isNotePfp: true,
|
||||||
|
name: (note.teacher.isRenamed
|
||||||
|
? note.teacher.renamedTo
|
||||||
|
: note.teacher.name) ??
|
||||||
|
'',
|
||||||
|
radius: 19.2,
|
||||||
|
backgroundColor: Theme.of(context).colorScheme.secondary,
|
||||||
|
),
|
||||||
|
title: Text(
|
||||||
|
note.title,
|
||||||
|
maxLines: 2,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
style: const TextStyle(fontWeight: FontWeight.w600),
|
||||||
|
),
|
||||||
|
subtitle: Text(
|
||||||
|
note.content.replaceAll('\n', ' '),
|
||||||
|
maxLines: 1,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
style: const TextStyle(fontWeight: FontWeight.w500),
|
||||||
|
),
|
||||||
|
minLeadingWidth: 0,
|
||||||
),
|
),
|
||||||
subtitle: Text(
|
|
||||||
note.content.replaceAll('\n', ' '),
|
|
||||||
maxLines: 1,
|
|
||||||
overflow: TextOverflow.ellipsis,
|
|
||||||
style: const TextStyle(fontWeight: FontWeight.w500),
|
|
||||||
),
|
|
||||||
minLeadingWidth: 0,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user