Skip to content

Commit 20835ef

Browse files
committed
[feat] 再改样式
1 parent edc3b67 commit 20835ef

File tree

2 files changed

+37
-31
lines changed

2 files changed

+37
-31
lines changed

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
77

88
org.gradle.jvmargs=-Dfile.encoding=UTF-8

lib/xiaotian/view/widget/history_widget.dart

Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)