Добавлено удаление коллекций

This commit is contained in:
2025-03-25 21:36:00 +03:00
parent 94193658f1
commit 5892830499
380 changed files with 142 additions and 4057 deletions

View File

@@ -77,7 +77,7 @@ class _CollectionScreenState extends State<CollectionScreen> {
const CollectionsFilters(),
Expanded(
child: StreamBuilder<List<Collection>>(
stream: getIt<CollectionsInterface>().getCollectionsList(),
stream: getIt<CollectionsInterface>().watchCollectionsList(),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) {
return const _LoadingList();

View File

@@ -1,5 +1,4 @@
import 'dart:convert';
import 'dart:math';
import 'package:auto_route/auto_route.dart';
import 'package:flutter/material.dart';
@@ -77,7 +76,9 @@ class CollectionCard extends StatelessWidget {
showCuperModalBottomSheet(
context: context,
height: 477.h,
builder: (BuildContext context) => const ActionDialog(),
builder:
(BuildContext context) =>
ActionDialog(collection: collection),
);
},
child: Assets.icons.typeMenuVertical.image(
@@ -176,16 +177,6 @@ class CollectionCard extends StatelessWidget {
),
),
);
return SizedBox.square(
dimension: 50.r,
child: DecoratedBox(
decoration: BoxDecoration(
shape: BoxShape.circle,
image: DecorationImage(image: Assets.images.img.provider()),
),
),
);
}
///