Browse Source

ui更改

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

Loading…
Cancel
Save