feat:增加朋友圈表单功能

This commit is contained in:
2025-11-23 23:19:17 +08:00
parent 245edd9d27
commit 97e7a6f44b
10 changed files with 169 additions and 131 deletions

View File

@@ -24,25 +24,36 @@ class RecipeCard extends StatelessWidget {
children: [
CommonImage(imageUrls: imageUrls, index: 0),
SizedBox(height: 8),
GestureDetector(
onTap: () => navigatorToRecipeDetail(context),
child: _buildRecipeContent(),
),
_buildRecipeContent(context),
],
),
);
}
Widget _buildRecipeContent() {
Widget _buildRecipeContent(BuildContext context) {
final colors = Theme.of(context).colorScheme;
return Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
recipe.name,
style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
maxLines: 1,
overflow: TextOverflow.ellipsis,
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
recipe.name,
style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold),
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
InkWell(
onTap: () => navigatorToRecipeDetail(context),
child: Icon(
Icons.arrow_circle_right_sharp,
color: colors.secondary,
),
),
],
),
SizedBox(height: 5),
Row(
@@ -66,7 +77,7 @@ class RecipeCard extends StatelessWidget {
color: Color(0xFF20B2AA),
),
],
)
),
],
);
}