Rename card widget related giles to home_card in lec4
This commit is contained in:
parent
62b87de295
commit
2c68fe84b1
@ -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)?;
|
||||||
|
|
@ -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;
|
@ -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;
|
@ -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;
|
@ -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});
|
||||||
|
Loading…
Reference in New Issue
Block a user