feat:增加dio网络请求

This commit is contained in:
2025-07-15 19:54:32 +08:00
parent 3f12b03648
commit c8f93f15a1
16 changed files with 570 additions and 126 deletions

View File

@@ -18,7 +18,7 @@ class RecipeCard extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Image.network(
recipe.imageUrl,
recipe.recordList[0].imageUrl,
height: 200,
width: double.infinity,
fit: BoxFit.contain,
@@ -106,7 +106,7 @@ class RecipeCard extends StatelessWidget {
const SizedBox(width: 12),
_buildIconText(
icon: Icons.star_outline,
text: recipe.favoriteCount.toString(),
text: recipe.favouriteCount.toString(),
color: Colors.blue,
),
const SizedBox(width: 12),
@@ -121,7 +121,7 @@ class RecipeCard extends StatelessWidget {
children: [
_buildIconText(
icon: Icons.date_range,
text: recipe.date,
text: recipe.recordList[0].date,
color: Colors.red,
),
],