feature(core):save

This commit is contained in:
2025-10-29 10:13:34 +03:00
parent e791f08eef
commit 6d04c0ada0
12 changed files with 351 additions and 20 deletions

View File

@@ -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(),
),
),

View File

@@ -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),

View File

@@ -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(),
),
),