diff --git a/lec4/lib/view/home_page/card.dart b/lec4/lib/view/home_page/home_card.dart similarity index 95% rename from lec4/lib/view/home_page/card.dart rename to lec4/lib/view/home_page/home_card.dart index 3c13ec8..0323338 100644 --- a/lec4/lib/view/home_page/card.dart +++ b/lec4/lib/view/home_page/home_card.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; import 'package:test_app/domain/card.dart'; -part 'card_image.dart'; -part 'card_like.dart'; -part 'card_text.dart'; +part 'home_card_image.dart'; +part 'home_card_like.dart'; +part 'home_card_text.dart'; typedef OnLikeCallback = void Function(String title, bool isLiked)?; diff --git a/lec4/lib/view/home_page/card_image.dart b/lec4/lib/view/home_page/home_card_image.dart similarity index 98% rename from lec4/lib/view/home_page/card_image.dart rename to lec4/lib/view/home_page/home_card_image.dart index 2956442..5dd831a 100644 --- a/lec4/lib/view/home_page/card_image.dart +++ b/lec4/lib/view/home_page/home_card_image.dart @@ -1,4 +1,4 @@ -part of 'card.dart'; +part of 'home_card.dart'; class _CardImage extends StatelessWidget { final String imageUrl; diff --git a/lec4/lib/view/home_page/card_like.dart b/lec4/lib/view/home_page/home_card_like.dart similarity index 97% rename from lec4/lib/view/home_page/card_like.dart rename to lec4/lib/view/home_page/home_card_like.dart index bb7da19..e632a0d 100644 --- a/lec4/lib/view/home_page/card_like.dart +++ b/lec4/lib/view/home_page/home_card_like.dart @@ -1,4 +1,4 @@ -part of 'card.dart'; +part of 'home_card.dart'; class _CardLike extends StatefulWidget { final OnLikeCallback onLike; diff --git a/lec4/lib/view/home_page/card_text.dart b/lec4/lib/view/home_page/home_card_text.dart similarity index 96% rename from lec4/lib/view/home_page/card_text.dart rename to lec4/lib/view/home_page/home_card_text.dart index 0dafc8f..503538e 100644 --- a/lec4/lib/view/home_page/card_text.dart +++ b/lec4/lib/view/home_page/home_card_text.dart @@ -1,4 +1,4 @@ -part of 'card.dart'; +part of 'home_card.dart'; class _CardText extends StatelessWidget { final String text; diff --git a/lec4/lib/view/home_page/home_page.dart b/lec4/lib/view/home_page/home_page.dart index ab4bcbb..c3c48ac 100644 --- a/lec4/lib/view/home_page/home_page.dart +++ b/lec4/lib/view/home_page/home_page.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; import 'package:test_app/domain/card.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 { const MyHomePage({super.key, required this.title});