hyzp_ybqx-Commit109:版本号更新为1.4.20+20220306。已实现保存的多条登录用户记录的上下滚动功能
This commit is contained in:
@@ -1 +1 @@
|
|||||||
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":20220303,"versionName":"1.4.19","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
|
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":20220306,"versionName":"1.4.20","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
|
||||||
@@ -428,10 +428,17 @@ class _LoginPageState extends State<LoginByName3> {
|
|||||||
|
|
||||||
///构建历史账号ListView
|
///构建历史账号ListView
|
||||||
Widget _buildListView() {
|
Widget _buildListView() {
|
||||||
|
double _line_height = 110;
|
||||||
|
int _height = g_users.length * _line_height.toInt();
|
||||||
|
if (_height > 550) {
|
||||||
|
_height = 550;
|
||||||
|
}
|
||||||
if (g_can_expand_ListView) {
|
if (g_can_expand_ListView) {
|
||||||
return Center(
|
return Center(
|
||||||
child: Container(
|
child: Container(
|
||||||
width: ScreenUtil().screenWidth * 0.9,
|
width: ScreenUtil().screenWidth * 0.9,
|
||||||
|
// 模拟器:610越界,600刚好,550存放5个行刚好。S10,600越界
|
||||||
|
height: ScreenUtil().setHeight(_height),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
border: Border(
|
border: Border(
|
||||||
left: BorderSide(width: 1, color: Colors.black),
|
left: BorderSide(width: 1, color: Colors.black),
|
||||||
@@ -444,9 +451,7 @@ class _LoginPageState extends State<LoginByName3> {
|
|||||||
// // color: Colors.black,
|
// // color: Colors.black,
|
||||||
// // borderRadius: new BorderRadius.circular((20.0)),
|
// // borderRadius: new BorderRadius.circular((20.0)),
|
||||||
// ),
|
// ),
|
||||||
child: Column(
|
child: ListView.builder(
|
||||||
children: [
|
|
||||||
ListView.builder(
|
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
physics: BouncingScrollPhysics(),
|
physics: BouncingScrollPhysics(),
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
@@ -455,15 +460,19 @@ class _LoginPageState extends State<LoginByName3> {
|
|||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
|
// height: ScreenUtil().setHeight(_line_height),
|
||||||
// color: Colors.grey[200],
|
// color: Colors.grey[200],
|
||||||
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(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Text("${user.username}"),
|
Text("${(index + 1).toString()}、${user.username}"),
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.all(0),
|
padding: EdgeInsets.all(0),
|
||||||
@@ -501,8 +510,6 @@ class _LoginPageState extends State<LoginByName3> {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
itemCount: g_users.length,
|
itemCount: g_users.length,
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
+2
-1
@@ -59,7 +59,8 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
#version: 1.4.16+20220126
|
#version: 1.4.16+20220126
|
||||||
#version: 1.4.17+20220227
|
#version: 1.4.17+20220227
|
||||||
#version: 1.4.18+20220302
|
#version: 1.4.18+20220302
|
||||||
version: 1.4.19+20220303
|
#version: 1.4.19+20220303
|
||||||
|
version: 1.4.20+20220306
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.7.0 <3.0.0"
|
sdk: ">=2.7.0 <3.0.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user