feat:更新记录UI布局
This commit is contained in:
@@ -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()),
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user