feature(core):save
This commit is contained in:
@@ -158,7 +158,9 @@ class CollectionDetailScreen extends StatelessWidget {
|
||||
fallback:
|
||||
(context) => Center(
|
||||
child: AppTypography(
|
||||
collection.title.substring(0, 1),
|
||||
collection.title.isNotEmpty
|
||||
? collection.title.substring(0, 1)
|
||||
: '',
|
||||
type: Bold34px(),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -69,7 +69,7 @@ class _CollectionScreenState extends State<CollectionScreen> {
|
||||
child: FloatingActionButton(
|
||||
backgroundColor: AppColors.primary,
|
||||
// onPressed: () {
|
||||
// getIt<CollectionsInterface>().createCollectionApi();
|
||||
// getIt<CollectionsInterface>().getCollectionsFromApi();
|
||||
// },
|
||||
onPressed: () => context.pushRoute(CrudCollectionRoute()),
|
||||
child: const Icon(Icons.add),
|
||||
|
||||
@@ -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(),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -100,7 +100,9 @@ class InfoDialog 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