|
|
|
|
@ -428,10 +428,17 @@ class _LoginPageState extends State<LoginByName3> {
|
|
|
|
|
|
|
|
|
|
///构建历史账号ListView
|
|
|
|
|
Widget _buildListView() {
|
|
|
|
|
double _line_height = 110;
|
|
|
|
|
int _height = g_users.length * _line_height.toInt();
|
|
|
|
|
if (_height > 550) {
|
|
|
|
|
_height = 550;
|
|
|
|
|
}
|
|
|
|
|
if (g_can_expand_ListView) {
|
|
|
|
|
return Center(
|
|
|
|
|
child: Container(
|
|
|
|
|
width: ScreenUtil().screenWidth * 0.9,
|
|
|
|
|
// 模拟器:610越界,600刚好,550存放5个行刚好。S10,600越界
|
|
|
|
|
height: ScreenUtil().setHeight(_height),
|
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
|
border: Border(
|
|
|
|
|
left: BorderSide(width: 1, color: Colors.black),
|
|
|
|
|
@ -444,9 +451,7 @@ class _LoginPageState extends State<LoginByName3> {
|
|
|
|
|
// // color: Colors.black,
|
|
|
|
|
// // borderRadius: new BorderRadius.circular((20.0)),
|
|
|
|
|
// ),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
ListView.builder(
|
|
|
|
|
child: ListView.builder(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: BouncingScrollPhysics(),
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
@ -455,15 +460,19 @@ class _LoginPageState extends State<LoginByName3> {
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
// height: ScreenUtil().setHeight(_line_height),
|
|
|
|
|
// color: Colors.grey[200],
|
|
|
|
|
color: Colors.grey[200],
|
|
|
|
|
padding: EdgeInsets.only(left: 8, top: 8, right: 8, bottom: 8),
|
|
|
|
|
// padding: EdgeInsets.only(left: 8, top: 4, right: 8, bottom: 4),
|
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
|
horizontal: ScreenUtil().setHeight(35),
|
|
|
|
|
vertical: ScreenUtil().setHeight(17)),
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Text("${user.username}"),
|
|
|
|
|
Text("${(index + 1).toString()}、${user.username}"),
|
|
|
|
|
GestureDetector(
|
|
|
|
|
child: Padding(
|
|
|
|
|
padding: EdgeInsets.all(0),
|
|
|
|
|
@ -501,8 +510,6 @@ class _LoginPageState extends State<LoginByName3> {
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
itemCount: g_users.length,
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|