мини правки
This commit is contained in:
parent
a3df62d3e5
commit
c12a7f22e8
@ -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,
|
||||
});
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user