мини правки

This commit is contained in:
Полина Чубыкина 2024-12-21 17:19:49 +04:00
parent a3df62d3e5
commit c12a7f22e8
2 changed files with 0 additions and 5 deletions

View File

@ -3,14 +3,12 @@ import 'package:flutter/material.dart';
class CardData {
final String text;
final String descriptionText;
final IconData icon;
final String? imageUrl;
final String? id;
CardData(
this.text, {
required this.descriptionText,
this.icon = Icons.catching_pokemon,
this.imageUrl,
this.id,
});

View File

@ -5,7 +5,6 @@ typedef OnLikeCallback = void Function(String? id, String title, bool isLiked)?;
class _Card extends StatelessWidget {
final String text;
final String descriptionText;
final IconData icon;
final String? imageUrl;
final OnLikeCallback onLike;
final VoidCallback? onTap;
@ -14,7 +13,6 @@ class _Card extends StatelessWidget {
const _Card(
this.text, {
this.icon = Icons.ac_unit_outlined,
required this.descriptionText,
this.imageUrl,
this.onLike,
@ -32,7 +30,6 @@ class _Card extends StatelessWidget {
_Card(
data.text,
descriptionText: data.descriptionText,
icon: data.icon,
imageUrl: data.imageUrl,
onLike: onLike,
onTap: onTap,