feat:更新记录UI布局

This commit is contained in:
2025-07-22 22:48:49 +08:00
parent 65958d925e
commit 5d156d3a02
11 changed files with 135 additions and 116 deletions

View File

@@ -171,9 +171,9 @@ class _RecipeCalendarState extends State<RecipeCalendar> {
decoration: BoxDecoration(
color:
isSelected
? Colors.blue
? Theme.of(context).primaryColor
: isToday
? Colors.grey[200]
? Colors.grey[300]
: Colors.transparent,
shape: BoxShape.circle,
),
@@ -184,7 +184,7 @@ class _RecipeCalendarState extends State<RecipeCalendar> {
// 日期数字
Text(
day.day.toString(),
style: TextStyle(color: isSelected ? Colors.white : Colors.black87),
style: TextStyle(color: isSelected ? Colors.white : Colors.black),
),
// 底部红点 - 只在指定日期显示
if (shouldShowRedDot)
@@ -207,7 +207,6 @@ class _RecipeCalendarState extends State<RecipeCalendar> {
return Column(
children: [
Card(elevation: 0, color: Colors.white, child: recipeCalendar()),
const SizedBox(height: 10),
Expanded(child: dailyItem()),
],
);