|
|
|
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 '../../retrofit/data/business_login_info.dart';
|
|
|
|
import '../../utils/flutter_utils.dart';
|
|
|
|
import '../../utils/font_weight.dart';
|
|
|
|
import '../../view_widget/classic_header.dart';
|
|
|
|
import '../../view_widget/my_footer.dart';
|
|
|
|
|
|
|
|
class AccountInformation extends StatefulWidget {
|
|
|
|
final Map<String, dynamic> arguments;
|
|
|
|
|
|
|
|
AccountInformation({this.arguments});
|
|
|
|
@override
|
|
|
|
State<StatefulWidget> createState() {
|
|
|
|
return _AccountInformation();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class _AccountInformation extends State<AccountInformation> {
|
|
|
|
final RefreshController refreshController = RefreshController();
|
|
|
|
BusinessLoginInfo businessLoginInfo;
|
|
|
|
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
|
|
businessLoginInfo = widget.arguments["businessLoginInfo"];
|
|
|
|
}
|
|
|
|
|
|
|
|
@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("账号名称", businessLoginInfo?.name),
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: 1.h,
|
|
|
|
color: Color(0xFFEBECEF),
|
|
|
|
margin: EdgeInsets.only(top:2.h,bottom: 16.h)
|
|
|
|
),
|
|
|
|
textItem("账号",AppUtils.phoneEncode(businessLoginInfo?.account ?? "")),
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: 1.h,
|
|
|
|
color: Color(0xFFEBECEF),
|
|
|
|
margin: EdgeInsets.only(top:2.h,bottom: 16.h)
|
|
|
|
),
|
|
|
|
textItem("电话",businessLoginInfo?.mobile?? ""),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
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),),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|