mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-25 12:29:30 +00:00
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:
parent
8300cc7571
commit
86eddcac45
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue