Skip to content

Commit ebed8e2

Browse files
committed
1、项目细分页UI美化
1 parent b57ce6b commit ebed8e2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/page/home/project/project_detail_page.dart

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class _ProjectDetailPageState extends State<ProjectDetailPage>
7171
if (index < datas.length) {
7272
return Container(
7373
margin: EdgeInsets.symmetric(
74-
horizontal: pt(16), vertical: pt(6)),
74+
horizontal: pt(16), vertical: pt(8)),
7575
height: pt(180),
7676
child: ProjectItem(datas[index], isloading),
7777
);
@@ -157,10 +157,11 @@ class _ProjectItemState extends State<ProjectItem>
157157
});
158158
}
159159
lastCollectState = widget.data.collect;
160-
return Card(
161-
elevation: 1,
162-
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(pt(6))),
163-
clipBehavior: Clip.antiAlias,
160+
return DecoratedBox(
161+
decoration: BoxDecoration(
162+
color: Colors.white,
163+
boxShadow: [DisplayUtil.lightElevation(baseColor: Colors.grey[300])],
164+
),
164165
child: GestureDetector(
165166
onTap: () {
166167
Navigator.pushNamed(

0 commit comments

Comments
 (0)