Flutter中的SliverAppBar
·
SliverAppBar(
title: Text(''),
leading:null,
automaticallyImplyLeading: false,
expandedHeight: 250,
backgroundColor: Colors.white,
flexibleSpace: FlexibleSpaceBar(
background: Container(
height: 200.h,
color: Colors.white,
margin: EdgeInsets.only(top: 20.h,left: 20.w,right: 20.w),
child: Column(
mainAxisAlignment:MainAxisAlignment.start,
children: [
Container(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Image.asset(ImageRes.appMock,
width: 40.w, height: 40.w),
SizedBox(width: 20.w),
Text('客户无忧', style: PageStyle.ts_1A1A1A_14sp),
SizedBox(width: 10.w),
Container(
height: 14.h,
padding:
EdgeInsets.only(left: 10.w, right: 10.w),
alignment: Alignment.center,
decoration: BoxDecoration(
color: Color(0xFFECECEC),
borderRadius: BorderRadius.circular(12.r),
),
child: Text('应用',
style: PageStyle.ts_333333_8sp)),
Spacer(),
],
),
),
SizedBox(height: 10.h),
Container(
color: Colors.red,
child: Text("简单实用的客户管理系统 4+"),
),
],
),
),
collapseMode: CollapseMode.parallax,
),
),
更多推荐



所有评论(0)