Browse Source

ui更改

remove_uniapp
w-R 3 years ago
parent
commit
19209764f7
  1. 122
      lib/mine/personal_page.dart

122
lib/mine/personal_page.dart

@ -302,20 +302,23 @@ class _PersonalPage extends State<PersonalPage> with WidgetsBindingObserver {
child:Column( child:Column(
mainAxisAlignment: MainAxisAlignment.spaceAround, mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [
Stack(
alignment: Alignment.bottomLeft,
children: [ children: [
Container( Container(
height: 286, height: 260,
color: Color(0xFFFFFFFF), color: Color(0xFFFFFFFF),
child: Stack( // color: Colors.red,
alignment: Alignment.bottomRight, child:
children: [
Stack( Stack(
// alignment: Alignment.bottomLeft,
children: [ children: [
Positioned( Positioned(
child: Container( top:0,
left: 0,
bottom: 36,
right: 0,
child:Stack(
children: [
Container(
color: Colors.black, color: Colors.black,
child: Opacity( child: Opacity(
opacity: 0.9, opacity: 0.9,
@ -328,7 +331,7 @@ class _PersonalPage extends State<PersonalPage> with WidgetsBindingObserver {
"assets/image/default_1.png", "assets/image/default_1.png",
fadeSrc: fadeSrc:
"assets/image/default_1.png", "assets/image/default_1.png",
)))), ))),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(
top: 50.h, left: 16.w, right: 16.w), top: 50.h, left: 16.w, right: 16.w),
@ -354,11 +357,9 @@ class _PersonalPage extends State<PersonalPage> with WidgetsBindingObserver {
], ],
), ),
), ),
],
),
if(memberId == "0") if(memberId == "0")
Positioned( Positioned(
bottom: 49.h, bottom: 9,
right: 16.w, right: 16.w,
child:GestureDetector( child:GestureDetector(
onTap: (){ onTap: (){
@ -367,7 +368,7 @@ class _PersonalPage extends State<PersonalPage> with WidgetsBindingObserver {
child:Container( child:Container(
padding: EdgeInsets.only(left: 2, right: 2), padding: EdgeInsets.only(left: 2, right: 2),
width: 59.w, width: 59.w,
height: 21.h, height: 23.h,
alignment: Alignment.center, alignment: Alignment.center,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(2), borderRadius: BorderRadius.circular(2),
@ -388,9 +389,94 @@ class _PersonalPage extends State<PersonalPage> with WidgetsBindingObserver {
], ],
), ),
), ),
// 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(), homeInfo(),
], ],
), ),
),
Container( Container(
color: Color(0xFFFFFFFF), color: Color(0xFFFFFFFF),
child: child:
@ -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