fix: add null safety assertions for Text widgets

Add non-null assertion operators for authorName and subtitle in Text
widgets where null checks are already performed. This resolves the
null safety compilation errors.
This commit is contained in:
Claude 2025-11-20 17:07:18 +00:00
parent 8300cc7571
commit 86eddcac45
No known key found for this signature in database

View file

@ -241,10 +241,10 @@ class LibraryItemListTile extends ConsumerWidget {
subtitle: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (authorName != null) Text(authorName),
if (authorName != null) Text(authorName!),
if (subtitle != null)
Text(
subtitle,
subtitle!,
style: Theme.of(context).textTheme.bodySmall,
maxLines: 1,
overflow: TextOverflow.ellipsis,