You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
124 lines
3.8 KiB
124 lines
3.8 KiB
2 years ago
|
import 'package:flutter/material.dart';
|
||
|
import 'package:huixiang/view_widget/my_appbar.dart';
|
||
|
import 'package:pull_to_refresh/pull_to_refresh.dart';
|
||
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||
|
|
||
|
import '../../utils/font_weight.dart';
|
||
|
import '../../view_widget/classic_header.dart';
|
||
|
import '../../view_widget/my_footer.dart';
|
||
|
|
||
|
class AccountInformation extends StatefulWidget {
|
||
|
@override
|
||
|
State<StatefulWidget> createState() {
|
||
|
return _AccountInformation();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class _AccountInformation extends State<AccountInformation> {
|
||
|
final RefreshController refreshController = RefreshController();
|
||
|
|
||
|
@override
|
||
|
void initState() {
|
||
|
super.initState();
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return
|
||
|
Scaffold(
|
||
|
backgroundColor: Color(0xFFF8F8FA),
|
||
|
appBar: MyAppBar(
|
||
|
title: "账号信息",
|
||
|
titleColor: Colors.black,
|
||
|
background: Colors.white,
|
||
|
leadingColor: Colors.black,
|
||
|
brightness: Brightness.dark,
|
||
|
),
|
||
|
body: SmartRefresher(
|
||
|
controller: refreshController,
|
||
|
enablePullDown: true,
|
||
|
enablePullUp: false,
|
||
|
header: MyHeader(
|
||
|
color: Colors.white,
|
||
|
),
|
||
|
footer: CustomFooter(
|
||
|
builder: (context, mode) {
|
||
|
return MyFooter(mode);
|
||
|
},
|
||
|
),
|
||
|
onRefresh: () {
|
||
|
},
|
||
|
physics: BouncingScrollPhysics(),
|
||
|
scrollController: ScrollController(),
|
||
|
child: SingleChildScrollView(
|
||
|
physics: BouncingScrollPhysics(),
|
||
|
child:Container(
|
||
|
margin: EdgeInsets.only(top: 16.h,left: 16.w,right: 16.w),
|
||
|
child:Column(
|
||
|
children: [
|
||
|
Container(
|
||
|
decoration: BoxDecoration(
|
||
|
color: Colors.white,
|
||
|
borderRadius: BorderRadius.circular(8.w),
|
||
|
boxShadow: [
|
||
|
BoxShadow(
|
||
|
color: Color(0x0F06152E).withAlpha(12),
|
||
|
offset: Offset(0, 2),
|
||
|
blurRadius: 4,
|
||
|
spreadRadius: 0,
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
padding: EdgeInsets.only(top: 16.h,left: 16.w,right: 16.w,),
|
||
|
child: Column(
|
||
|
children: [
|
||
|
textItem("账号名称","134****7777"),
|
||
|
Container(
|
||
|
width: double.infinity,
|
||
|
height: 1.h,
|
||
|
color: Color(0xFFEBECEF),
|
||
|
margin: EdgeInsets.only(top:2.h,bottom: 16.h)
|
||
|
),
|
||
|
textItem("账号","22221ff"),
|
||
|
Container(
|
||
|
width: double.infinity,
|
||
|
height: 1.h,
|
||
|
color: Color(0xFFEBECEF),
|
||
|
margin: EdgeInsets.only(top:2.h,bottom: 16.h)
|
||
|
),
|
||
|
textItem("电话","13466667777"),
|
||
|
],
|
||
|
),
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
|
||
|
Widget textItem(left,right){
|
||
|
return Container(
|
||
|
padding: EdgeInsets.only(bottom: 16.h),
|
||
|
child: Row(
|
||
|
children: [
|
||
|
Expanded(child:Text(
|
||
|
left,
|
||
|
style: TextStyle(
|
||
|
fontSize: 14.sp,
|
||
|
color: Color(0xFF1A1A1A),
|
||
|
fontWeight: MyFontWeight.medium),)),
|
||
|
Text(
|
||
|
right,
|
||
|
style: TextStyle(
|
||
|
fontSize: 14.sp,
|
||
|
color: Color(0xFF1A1A1A),
|
||
|
fontWeight: MyFontWeight.medium),),
|
||
|
],
|
||
|
)
|
||
|
);
|
||
|
}
|
||
|
|
||
|
}
|