userInfo.expertise = map[‘expertise’];
userInfo.joinTime = map[‘joinTime’];
userInfo.lastLoginTime = map[‘lastLoginTime’];
userInfo.portrait = map[‘portrait’];
userInfo.fansCount = map[‘fansCount’];
userInfo.favoriteCount = map[‘favoriteCount’];
userInfo.followersCount = map[‘followersCount’];
userInfo.notice = map[‘notice’];
//刷新用户信息
setState(() {
_userInfo = userInfo;
});
}
});
});
}
@override
void initState() {
super.initState();
_getDetailInfo();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
elevation: 0.0,
title: Text(
‘我的资料’,
style: TextStyle(
color: Color(AppColors.APPBAR),
),
),
iconTheme: IconThemeData(color: Color(AppColors.APPBAR)),
),
body: buildSingleChildScrollView(),
);
}
Widget buildSingleChildScrollView() {
return SingleChildScrollView(
child: _userInfo == null
? Center(
child: CupertinoActivityIndicator(),
-
)
- Column(
children: [
InkWell(
onTap: () {
//TODO
},
child: Container(
margin: const EdgeInsets.only(left: 20.0),
padding: const EdgeInsets.only(
top: 10.0, bottom: 10.0, right: 20.0),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
‘头像’,
style: TextStyle(fontSize: 20.0),
),
Container(
width: 60.0,
height: 60.0,
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(
color: Colors.white,
width: 2.0,
),
image: DecorationImage(
image: NetworkImage(_userInfo.portrait),
fit: BoxFit.cover,
),
),
)
],
),
),
),
Divider(),
InkWell(
onTap: () {
//TODO
},
child: Container(
margin: const EdgeInsets.only(left: 20.0),
padding: const EdgeInsets.only(
top: 10.0, bottom: 10.0, right: 20.0),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
‘昵称’,
style: TextStyle(fontSize: 20.0),
),
Text(
_userInfo.name,
style: TextStyle(fontSize: 20.0),
),
],
),
),
),
Divider(),
Container(
margin: const EdgeInsets.only(left: 20.0),
padding: const EdgeInsets.only(
top: 10.0, bottom: 10.0, right: 20.0),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
‘加入时间’,
style: TextStyle(fontSize: 20.0),
),
Text(
_userInfo.joinTime,
// _userInfo.joinTime.split(’ ')[0],
style: TextStyle(fontSize: 20.0),
),
],
),
),
Divider(),
InkWell(
onTap: () {
//TODO
},
child: Container(
margin: const EdgeInsets.only(left: 20.0),
padding: const EdgeInsets.only(
top: 10.0, bottom: 10.0, right: 20.0),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
‘所在地区’,
style: TextStyle(fontSize: 20.0),
),
Text(
_userInfo.city,
style: TextStyle(fontSize: 20.0),
),
],
),
),
),
Divider(),
InkWell(
onTap: () {
//TODO
},
child: Container(
margin: const EdgeInsets.only(left: 20.0),
padding: const EdgeInsets.only(
top: 10.0, bottom: 10.0, right: 20.0),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Padding(
padding: const EdgeInsets.only(right: 20.0),
child: Text(
‘开发平台’,
style: TextStyle(fontSize: 20.0),
),
),
Expanded(
child: Text(
// ‘Android,C/C++,J2ME/K-Java,Python,.NET/C#’,
_userInfo.platforms.toString(),
style: TextStyle(fontSize: 20.0),
textAlign: TextAlign.right,
),
),
],
),
),
),
Divider(),
InkWell(
onTap: () {
//TODO
},
child: Container(
margin: const EdgeInsets.only(left: 20.0),
padding: const EdgeInsets.only(
top: 10.0, bottom: 10.0, right: 20.0),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Padding(
padding: const EdgeInsets.only(right: 20.0),
child: Text(
‘专长领域’,
style: TextStyle(fontSize: 20.0),
),
),
Expanded(
child: Text(
// ‘手机软件开发,服务器开发,软件开发管理’,
_userInfo.expertise.toString(),
style: TextStyle(fontSize: 20.0),
textAlign: TextAlign.right,
),
),
],
),
),
),
Divider(),
Container(
margin: const EdgeInsets.only(left: 20.0),
padding: const EdgeInsets.only(
top: 10.0, bottom: 10.0, right: 20.0),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
‘粉丝数’,
style: TextStyle(fontSize: 20.0),
),
Text(
_userInfo.fansCount.toString(),
style: TextStyle(fontSize: 20.0),
overflow: TextOverflow.ellipsis,
),
],
),
),
Divider(),
Container(
margin: const EdgeInsets.only(left: 20.0),
padding: const EdgeInsets.only(
top: 10.0, bottom: 10.0, right: 20.0),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
‘收藏数’,
style: TextStyle(fontSize: 20.0),
),
Text(
_userInfo.favoriteCount.toString(),
style: TextStyle(fontSize: 20.0),
overflow: TextOverflow.ellipsis,
),
],
),
),
Divider(),
Container(
margin: const EdgeInsets.only(left: 20.0),
padding: const EdgeInsets.only(
top: 10.0, bottom: 10.0, right: 20.0),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
‘关注数’,
style: TextStyle(fontSize: 20.0),
),
Text(
最后
都说三年是程序员的一个坎,能否晋升或者提高自己的核心竞争力,这几年就十分关键。
技术发展的这么快,从哪些方面开始学习,才能达到高级工程师水平,最后进阶到Android架构师/技术专家?我总结了这 5大块;
我搜集整理过这几年阿里,以及腾讯,字节跳动,华为,小米等公司的面试题,把面试的要求和技术点梳理成一份大而全的“ Android架构师”面试 PDF(实际上比预期多花了不少精力),包含知识脉络 + 分支细节。
Java语言与原理;
大厂,小厂。Android面试先看你熟不熟悉Java语言
高级UI与自定义view;
自定义view,Android开发的基本功。
性能调优;
数据结构算法,设计模式。都是这里面的关键基础和重点需要熟练的。
NDK开发;
未来的方向,高薪必会。
前沿技术;
组件化,热升级,热修复,框架设计
网上学习 Android的资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。希望这份系统化的技术体系对大家有一个方向参考。
我在搭建这些技术框架的时候,还整理了系统的高级进阶教程,会比自己碎片化学习效果强太多,GitHub可见;《Android架构视频+学习笔记》
当然,想要深入学习并掌握这些能力,并不简单。关于如何学习,做程序员这一行什么工作强度大家都懂,但是不管工作多忙,每周也要雷打不动的抽出 2 小时用来学习。
不出半年,你就能看出变化!
外链图片转存中…(img-JPXSFdyy-1643956024133)]
前沿技术;
组件化,热升级,热修复,框架设计
[外链图片转存中…(img-Qp6ssr8q-1643956024133)]
网上学习 Android的资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。希望这份系统化的技术体系对大家有一个方向参考。
我在搭建这些技术框架的时候,还整理了系统的高级进阶教程,会比自己碎片化学习效果强太多,GitHub可见;《Android架构视频+学习笔记》
当然,想要深入学习并掌握这些能力,并不简单。关于如何学习,做程序员这一行什么工作强度大家都懂,但是不管工作多忙,每周也要雷打不动的抽出 2 小时用来学习。
不出半年,你就能看出变化!