removed splash from notetile

This commit is contained in:
Kima 2024-01-25 19:09:02 +01:00
parent 4b0726f939
commit 1cd1d7ae88

View File

@ -15,12 +15,17 @@ class NoteTile extends StatelessWidget {
type: MaterialType.transparency,
child: Padding(
padding: padding ?? const EdgeInsets.symmetric(horizontal: 8.0),
child: Theme(
data: Theme.of(context).copyWith(
highlightColor: Colors.transparent,
splashColor: Colors.transparent,
),
child: ListTile(
visualDensity: VisualDensity.compact,
contentPadding: const EdgeInsets.only(left: 8.0, right: 12.0),
onTap: onTap,
shape:
RoundedRectangleBorder(borderRadius: BorderRadius.circular(14.0)),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(14.0)),
leading: ProfileImage(
isNotePfp: true,
name: (note.teacher.isRenamed
@ -45,6 +50,7 @@ class NoteTile extends StatelessWidget {
minLeadingWidth: 0,
),
),
),
);
}
}