Browse Source

Merge remote-tracking branch 'origin/remove_uniapp' into remove_uniapp

remove_uniapp
fmk 3 years ago
parent
commit
cda2bf0901
  1. 256
      lib/mine/personal_page.dart

256
lib/mine/personal_page.dart

@ -303,93 +303,179 @@ class _PersonalPage extends State<PersonalPage> with WidgetsBindingObserver {
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Stack(
alignment: Alignment.bottomLeft,
children: [
Container(
height: 286,
color: Color(0xFFFFFFFF),
child: Stack(
alignment: Alignment.bottomRight,
children: [
Stack(
children: [
Positioned(
child: Container(
color: Colors.black,
child: Opacity(
opacity: 0.9,
child: MImage(
memberInfor?.background ?? "",
width: double.infinity,
height: 260.h,
fit: BoxFit.cover,
errorSrc:
"assets/image/default_1.png",
fadeSrc:
"assets/image/default_1.png",
)))),
Container(
margin: EdgeInsets.only(
top: 50.h, left: 16.w, right: 16.w),
decoration: BoxDecoration(
color: Colors.transparent,
),
child: Column(
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
crossAxisAlignment:
CrossAxisAlignment.center,
children: [
GestureDetector(
child: Image.asset(
"assets/image/integral_return.png",
width: 24,
height: 24,
),
onTap: () {
Navigator.of(context).pop();
},
),
],
),
Container(
height: 260,
color: Color(0xFFFFFFFF),
// color: Colors.red,
child:
Stack(
// alignment: Alignment.bottomLeft,
children: [
Positioned(
top:0,
left: 0,
bottom: 36,
right: 0,
child:Stack(
children: [
Container(
color: Colors.black,
child: Opacity(
opacity: 0.9,
child: MImage(
memberInfor?.background ?? "",
width: double.infinity,
height: 260.h,
fit: BoxFit.cover,
errorSrc:
"assets/image/default_1.png",
fadeSrc:
"assets/image/default_1.png",
))),
Container(
margin: EdgeInsets.only(
top: 50.h, left: 16.w, right: 16.w),
decoration: BoxDecoration(
color: Colors.transparent,
),
],
),
if(memberId == "0")
Positioned(
bottom: 49.h,
right: 16.w,
child:GestureDetector(
onTap: (){
showImagePicker();
},
child:Container(
padding: EdgeInsets.only(left: 2, right: 2),
width: 59.w,
height: 21.h,
alignment: Alignment.center,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(2),
color: Color(0x80000000),
child: Column(
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
crossAxisAlignment:
CrossAxisAlignment.center,
children: [
GestureDetector(
child: Image.asset(
"assets/image/integral_return.png",
width: 24,
height: 24,
),
onTap: () {
Navigator.of(context).pop();
},
),
child: Text(
"更换背景",
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 12.sp,
fontWeight: MyFontWeight.regular,
color: Color(0xFFFFFFFF),
],
),
),
if(memberId == "0")
Positioned(
bottom: 9,
right: 16.w,
child:GestureDetector(
onTap: (){
showImagePicker();
},
child:Container(
padding: EdgeInsets.only(left: 2, right: 2),
width: 59.w,
height: 23.h,
alignment: Alignment.center,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(2),
color: Color(0x80000000),
),
child: Text(
"更换背景",
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 12.sp,
fontWeight: MyFontWeight.regular,
color: Color(0xFFFFFFFF),
),
),
),
),
),
),
],
],
),
),
),
homeInfo(),
],
// Positioned(
// top:0,
// left: 0,
// bottom: 0,
// right: 0,
// child:Stack(
// alignment: Alignment.bottomRight,
// children: [
// Stack(
// children: [
// Positioned(
// child: Container(
// color: Colors.black,
// child: Opacity(
// opacity: 0.9,
// child: MImage(
// memberInfor?.background ?? "",
// width: double.infinity,
// height: 260.h,
// fit: BoxFit.cover,
// errorSrc:
// "assets/image/default_1.png",
// fadeSrc:
// "assets/image/default_1.png",
// )))),
// Container(
// margin: EdgeInsets.only(
// top: 50.h, left: 16.w, right: 16.w),
// decoration: BoxDecoration(
// color: Colors.transparent,
// ),
// child: Column(
// mainAxisAlignment:
// MainAxisAlignment.spaceBetween,
// crossAxisAlignment:
// CrossAxisAlignment.center,
// children: [
// GestureDetector(
// child: Image.asset(
// "assets/image/integral_return.png",
// width: 24,
// height: 24,
// ),
// onTap: () {
// Navigator.of(context).pop();
// },
// ),
// ],
// ),
// ),
// ],
// ),
// if(memberId == "0")
// Positioned(
// bottom: 49.h,
// right: 16.w,
// child:GestureDetector(
// onTap: (){
// showImagePicker();
// },
// child:Container(
// padding: EdgeInsets.only(left: 2, right: 2),
// width: 59.w,
// height: 23.h,
// alignment: Alignment.center,
// decoration: BoxDecoration(
// borderRadius: BorderRadius.circular(2),
// color: Color(0x80000000),
// ),
// child: Text(
// "更换背景",
// overflow: TextOverflow.ellipsis,
// style: TextStyle(
// fontSize: 12.sp,
// fontWeight: MyFontWeight.regular,
// color: Color(0xFFFFFFFF),
// ),
// ),
// ),
// ),
// ),
// ],
// ),
// ),
homeInfo(),
],
),
),
Container(
color: Color(0xFFFFFFFF),
@ -610,7 +696,12 @@ class _PersonalPage extends State<PersonalPage> with WidgetsBindingObserver {
}
Widget homeInfo() {
return Container(
return Positioned(
top: 0,
bottom: 5,
left: 0,
right: 0,
child: Container(
padding: EdgeInsets.only(
left: 16,
right: 16,
@ -667,6 +758,7 @@ class _PersonalPage extends State<PersonalPage> with WidgetsBindingObserver {
});
},
child: Container(
height: 23,
padding: EdgeInsets.only(left: 6, right: 6, bottom: 2, top: 2),
alignment: Alignment.center,
decoration: BoxDecoration(
@ -688,7 +780,7 @@ class _PersonalPage extends State<PersonalPage> with WidgetsBindingObserver {
),
)
],
),);
),));
}
Widget dynamicList() {

Loading…
Cancel
Save