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

View File

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