feat:调整部分组件UI
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user