Rename card widget related giles to home_card in lec4

This commit is contained in:
Aleksey Filippov 2024-10-04 12:03:16 +04:00
parent 62b87de295
commit 2c68fe84b1
5 changed files with 7 additions and 7 deletions

View File

@ -1,9 +1,9 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:test_app/domain/card.dart'; import 'package:test_app/domain/card.dart';
part 'card_image.dart'; part 'home_card_image.dart';
part 'card_like.dart'; part 'home_card_like.dart';
part 'card_text.dart'; part 'home_card_text.dart';
typedef OnLikeCallback = void Function(String title, bool isLiked)?; typedef OnLikeCallback = void Function(String title, bool isLiked)?;

View File

@ -1,4 +1,4 @@
part of 'card.dart'; part of 'home_card.dart';
class _CardImage extends StatelessWidget { class _CardImage extends StatelessWidget {
final String imageUrl; final String imageUrl;

View File

@ -1,4 +1,4 @@
part of 'card.dart'; part of 'home_card.dart';
class _CardLike extends StatefulWidget { class _CardLike extends StatefulWidget {
final OnLikeCallback onLike; final OnLikeCallback onLike;

View File

@ -1,4 +1,4 @@
part of 'card.dart'; part of 'home_card.dart';
class _CardText extends StatelessWidget { class _CardText extends StatelessWidget {
final String text; final String text;

View File

@ -1,7 +1,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:test_app/domain/card.dart'; import 'package:test_app/domain/card.dart';
import 'package:test_app/view/details_page/details_page.dart'; import 'package:test_app/view/details_page/details_page.dart';
import 'package:test_app/view/home_page/card.dart'; import 'package:test_app/view/home_page/home_card.dart';
class MyHomePage extends StatefulWidget { class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title}); const MyHomePage({super.key, required this.title});