Создание карточки в коллекции + экран поиска коллекции

This commit is contained in:
2025-04-02 21:40:31 +03:00
parent fb7ff84087
commit 17dff72655
36 changed files with 2495 additions and 277 deletions

View File

@@ -83,16 +83,16 @@ class _CollectionScreenState extends State<CollectionScreen> {
stream: getIt<CollectionsInterface>().watchCollectionsList(),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) {
return const _LoadingList();
return const LoadingList();
}
if (snapshot.hasError) {
return const _ErrorList();
return const ErrorList();
}
final collections = snapshot.data;
if (collections == null || collections.isEmpty) {
return const _EmptyList();
return const EmptyList();
}
return ListView.builder(
@@ -113,8 +113,8 @@ class _CollectionScreenState extends State<CollectionScreen> {
}
}
class _LoadingList extends StatelessWidget {
const _LoadingList();
class LoadingList extends StatelessWidget {
const LoadingList({super.key});
@override
Widget build(BuildContext context) {
@@ -125,8 +125,8 @@ class _LoadingList extends StatelessWidget {
}
}
class _ErrorList extends StatelessWidget {
const _ErrorList();
class ErrorList extends StatelessWidget {
const ErrorList({super.key});
@override
Widget build(BuildContext context) {
@@ -139,8 +139,8 @@ class _ErrorList extends StatelessWidget {
}
}
class _EmptyList extends StatelessWidget {
const _EmptyList();
class EmptyList extends StatelessWidget {
const EmptyList({super.key});
@override
Widget build(BuildContext context) {