|
|
|
@ -140,13 +140,15 @@ class UserInformationPage extends StatelessWidget { |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
SingleChildScrollView( |
|
|
|
child: Stack( |
|
|
|
clipBehavior: Clip.none, |
|
|
|
children: [ |
|
|
|
Container( |
|
|
|
padding: EdgeInsets.only(top: 361.w), |
|
|
|
child: Container( |
|
|
|
DraggableScrollableSheet( |
|
|
|
initialChildSize: 0.55, // 初始露出高度(占屏幕比例) |
|
|
|
minChildSize: 0.55, // 最小(不想下滑回去就设成一样) |
|
|
|
maxChildSize: 0.95, |
|
|
|
builder: (context, scrollController){ |
|
|
|
return Stack( |
|
|
|
clipBehavior: Clip.none, |
|
|
|
children: [ |
|
|
|
Container( |
|
|
|
height: 812.h - 361.w - 50, |
|
|
|
width: 375.w, |
|
|
|
padding: EdgeInsets.only( |
|
|
|
@ -354,29 +356,33 @@ class UserInformationPage extends StatelessWidget { |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Positioned( |
|
|
|
left: 15.w, |
|
|
|
top: 301.w, |
|
|
|
child: ClipRRect( |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(90.w)), |
|
|
|
child: Container( |
|
|
|
width: 90.w, |
|
|
|
height: 90.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(90.w)), |
|
|
|
border: Border.all(width: 3.w, color: Colors.white) |
|
|
|
), |
|
|
|
child: Image.asset( |
|
|
|
Assets.imagesUserAvatar, |
|
|
|
width: 84.w, |
|
|
|
height: 84.w, |
|
|
|
Positioned( |
|
|
|
left: 15.w, |
|
|
|
top: -60.w, |
|
|
|
child: ClipRRect( |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(90.w)), |
|
|
|
child: Container( |
|
|
|
width: 90.w, |
|
|
|
height: 90.w, |
|
|
|
decoration: BoxDecoration( |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(90.w)), |
|
|
|
border: Border.all(width: 3.w, color: Colors.white) |
|
|
|
), |
|
|
|
child: ClipRRect( |
|
|
|
borderRadius: BorderRadius.all(Radius.circular(84.w)), |
|
|
|
child: CachedNetworkImage( |
|
|
|
imageUrl: "${controller.userData.value.profilePhoto}?x-oss-process=image/format,webp", |
|
|
|
width: 84.w, |
|
|
|
height: 84.w, |
|
|
|
fit: BoxFit.cover, |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
) |
|
|
|
], |
|
|
|
), |
|
|
|
) |
|
|
|
], |
|
|
|
); |
|
|
|
}, |
|
|
|
), |
|
|
|
Positioned( |
|
|
|
left: 0, |
|
|
|
|