@@ -130,37 +130,43 @@ class _historyDrawerState extends State<historyDrawer> {
130130
131131 grouped.forEach ((dateStr, tabs) {
132132 children.add (
133- Container (
134- margin: EdgeInsets .only (bottom: 8. h,left: 15. w,right: 15. w),
135- padding: EdgeInsets .symmetric (vertical: 10. h, horizontal: 15. w),
136- decoration: BoxDecoration (
137- boxShadow: [
138- BoxShadow (
139- color: WpyTheme .of (context).get (WpyColorKey .reverseBackgroundColor).withOpacity (0.05 ),
140- blurRadius: 10. r,
141- offset: Offset (0 ,4. h)
142- )
143- ],
144- // gradient: WpyTheme.of(context).getGradient(WpyColorSetKey.lighterPrimaryGradient),
145- color: WpyTheme .of (context).get (WpyColorKey .skeletonEndBColor),
146- borderRadius: BorderRadius .circular (10. r),
147- ),
148- child: Column (
149- crossAxisAlignment: CrossAxisAlignment .start,
150- children: [
151- // 日期标题
152- Padding (
153- padding: EdgeInsets .only (bottom: 4. h),
154- child: Text (
155- dateStr,
156- style: TextUtil .base .PingFangSC .label (context).bold.sp (14 ),
157- ),
133+ Column (
134+ crossAxisAlignment: CrossAxisAlignment .start,
135+ mainAxisSize: MainAxisSize .max,
136+ children: [
137+ // 日期标题
138+ Padding (
139+ padding: EdgeInsets .only (left: 25. w,bottom: 4. h),
140+ child: Text (
141+ dateStr,
142+ style: TextUtil .base .PingFangSC .label (context).bold.sp (14 ),
158143 ),
159- // 当天的所有 tab
160- ...tabs.map ((tab) => historyTab (session: tab)),
161- ],
162- ),
163- ),
144+ ),
145+ Container (
146+ margin: EdgeInsets .only (bottom: 8. h,left: 15. w,right: 15. w),
147+ padding: EdgeInsets .symmetric (vertical: 10. h, horizontal: 15. w),
148+ width: double .infinity,
149+ decoration: BoxDecoration (
150+ boxShadow: [
151+ BoxShadow (
152+ color: WpyTheme .of (context).get (WpyColorKey .reverseBackgroundColor).withOpacity (0.05 ),
153+ blurRadius: 10. r,
154+ offset: Offset (0 ,4. h)
155+ )
156+ ],
157+ color: WpyTheme .of (context).get (WpyColorKey .skeletonEndBColor),
158+ borderRadius: BorderRadius .circular (10. r),
159+ ),
160+ child: Column (
161+ crossAxisAlignment: CrossAxisAlignment .start,
162+ children: [
163+ // 当天的所有 tab
164+ ...tabs.map ((tab) => historyTab (session: tab)),
165+ ],
166+ ),
167+ ),
168+ ],
169+ )
164170 );
165171 });
166172
0 commit comments