Правки + иконка
This commit is contained in:
@@ -20,6 +20,10 @@ class CollectionCard extends StatelessWidget {
|
||||
|
||||
final Collection collection;
|
||||
|
||||
void _onCollectionTap(BuildContext context) {
|
||||
context.pushRoute(CollectionDetailRoute(collection: collection));
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Slidable(
|
||||
@@ -33,7 +37,9 @@ class CollectionCard extends StatelessWidget {
|
||||
backgroundColor: const Color(0xFFD7E6F4),
|
||||
foregroundColor: const Color(0xFF0058AB),
|
||||
icon: Icons.info_outline,
|
||||
onPressed: () {},
|
||||
onPressed: () {
|
||||
showInfoToast('Пока недоступно');
|
||||
},
|
||||
),
|
||||
const WSpace(8),
|
||||
_buildSlidableAction(
|
||||
@@ -44,7 +50,9 @@ class CollectionCard extends StatelessWidget {
|
||||
collection.isLiked
|
||||
? Icons.favorite_outlined
|
||||
: Icons.favorite_border,
|
||||
onPressed: () {},
|
||||
onPressed: () {
|
||||
showInfoToast('Пока недоступно');
|
||||
},
|
||||
),
|
||||
const WSpace(8),
|
||||
_buildSlidableAction(
|
||||
@@ -52,12 +60,14 @@ class CollectionCard extends StatelessWidget {
|
||||
backgroundColor: AppColors.secondary,
|
||||
foregroundColor: AppColors.primary,
|
||||
icon: Icons.visibility_off_outlined,
|
||||
onPressed: () {},
|
||||
onPressed: () {
|
||||
showInfoToast('Пока недоступно');
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
child: GestureDetector(
|
||||
onTap: () => context.pushRoute(CollectionDetailRoute()),
|
||||
onTap: () => _onCollectionTap(context),
|
||||
child: Container(
|
||||
constraints: BoxConstraints(minHeight: 66.h, maxHeight: 84.h),
|
||||
decoration: BoxDecoration(
|
||||
@@ -162,10 +172,7 @@ class CollectionCard extends StatelessWidget {
|
||||
condition: collection.image != null,
|
||||
builder:
|
||||
(context) => ClipOval(
|
||||
child: Image.memory(
|
||||
base64Decode(collection.image!),
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
child: Image.memory(collection.image!, fit: BoxFit.cover),
|
||||
),
|
||||
fallback:
|
||||
(context) => Center(
|
||||
|
||||
Reference in New Issue
Block a user