31 lines
555 B
Dart
31 lines
555 B
Dart
class Recipe {
|
|
final String name;
|
|
final String category;
|
|
final String date;
|
|
final String imageUrl;
|
|
final int likeCount;
|
|
final int favoriteCount;
|
|
final int commentCount;
|
|
|
|
Recipe(
|
|
this.name,
|
|
this.category,
|
|
this.date,
|
|
this.imageUrl,
|
|
this.likeCount,
|
|
this.favoriteCount,
|
|
this.commentCount,
|
|
);
|
|
}
|
|
|
|
class Record {
|
|
final String name;
|
|
final String category;
|
|
final String date;
|
|
final String imageUrl;
|
|
|
|
Record(this.name, this.category, this.date, this.imageUrl);
|
|
}
|
|
|
|
enum ViewType { recipe, calendar, timeline }
|