Fix possible error
This commit is contained in:
parent
e825798433
commit
0c86a7f29a
1 changed files with 4 additions and 1 deletions
|
@ -208,7 +208,10 @@ class _SharedCollectionGalleryState extends State<SharedCollectionGallery> {
|
|||
alignment: Alignment.bottomRight,
|
||||
child: Container(
|
||||
child: Text(
|
||||
c.collection.owner.name.substring(0, 1),
|
||||
c.collection.owner.name == null ||
|
||||
c.collection.owner.name.isEmpty
|
||||
? c.collection.owner.email.substring(0, 1)
|
||||
: c.collection.owner.name.substring(0, 1),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
padding: EdgeInsets.all(8),
|
||||
|
|
Loading…
Add table
Reference in a new issue