mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-11 11:59:34 +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(
|
subtitle: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
if (authorName != null) Text(authorName),
|
if (authorName != null) Text(authorName!),
|
||||||
if (subtitle != null)
|
if (subtitle != null)
|
||||||
Text(
|
Text(
|
||||||
subtitle,
|
subtitle!,
|
||||||
style: Theme.of(context).textTheme.bodySmall,
|
style: Theme.of(context).textTheme.bodySmall,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue