feat:调整部分组件UI

This commit is contained in:
2025-11-20 14:50:15 +08:00
parent eb4f7a3637
commit a9f2e102c5
2 changed files with 5 additions and 2 deletions

View File

@@ -59,12 +59,14 @@ class _RecipeCalendarState extends State<RecipeCalendar> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(formatDateTime(provider.selectedDay, 'MM月dd日 EEEE')),
SizedBox(height: 4),
if (provider.selectRecordList.isEmpty)
buildEmptyData()
else
Expanded(
child: ListView.builder(
child: ListView.separated(
itemCount: provider.selectRecordList.length,
separatorBuilder: (context, index) => SizedBox(height: 8),
itemBuilder: (context, index) {
return _buildRecordItem(
context,
@@ -118,6 +120,7 @@ class _RecipeCalendarState extends State<RecipeCalendar> {
return Card(
elevation: 0,
color: colors.primary.withAlpha(50),
margin: EdgeInsets.zero,
child: Padding(
padding: EdgeInsets.all(10),
child: Row(

View File

@@ -69,7 +69,7 @@ class _RecipeTimeline extends State<RecipeTimeline> {
},
contentsBuilder: (context, index) {
return Padding(
padding: const EdgeInsets.symmetric(vertical: 4.0),
padding: const EdgeInsets.all(4),
child: buildTimelineCard(context, recordList[index]),
);
},