feature(core):save
This commit is contained in:
@@ -185,7 +185,7 @@ class CollectionCard extends StatelessWidget {
|
||||
decoration: BoxDecoration(shape: BoxShape.circle, color: AppColors.bg),
|
||||
|
||||
child: Wif(
|
||||
condition: collection.image != null,
|
||||
condition: collection.image != null && collection.image != '',
|
||||
builder:
|
||||
(context) => ClipOval(
|
||||
child: Image.file(File(collection.image!), fit: BoxFit.cover),
|
||||
@@ -193,7 +193,9 @@ class CollectionCard extends StatelessWidget {
|
||||
fallback:
|
||||
(context) => Center(
|
||||
child: AppTypography(
|
||||
collection.title.substring(0, 1),
|
||||
collection.title.isNotEmpty
|
||||
? collection.title.substring(0, 1)
|
||||
: '',
|
||||
type: Bold34px(),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user