修改bug

This commit is contained in:
jyuesong
2022-01-21 17:07:42 +08:00
parent 9612802996
commit 25c98a1abf
8 changed files with 17 additions and 17 deletions

View File

@@ -24,10 +24,10 @@ class DependencyBean {
DependencyBean.fromJson(Map<String, dynamic> json) {
sId = json['_id'];
created = json['created'];
created = int.tryParse(json['created'].toString());
status = json['status'];
type = json['type'];
timestamp = json['timestamp'];
timestamp = json['timestamp'].toString();
name = json['name'];
log = json['log'].cast<String>();
remark = json['remark'];

View File

@@ -13,7 +13,7 @@ class LoginLogBean {
{this.timestamp, this.address, this.ip, this.platform, this.status});
LoginLogBean.fromJson(Map<String, dynamic> json) {
timestamp = json['timestamp'];
timestamp = int.tryParse(json['timestamp'].toString());
address = json['address'];
ip = json['ip'];
platform = json['platform'];

View File

@@ -116,9 +116,11 @@ class _OtherPageState extends ConsumerState<OtherPage> {
);
},
child: Padding(
padding: const EdgeInsets.symmetric(
vertical: 8,
horizontal: 15,
padding: const EdgeInsets.only(
top: 8,
bottom: 15,
left: 15,
right: 15,
),
child: Row(
children: [
@@ -206,9 +208,11 @@ class _OtherPageState extends ConsumerState<OtherPage> {
},
behavior: HitTestBehavior.opaque,
child: Padding(
padding: const EdgeInsets.symmetric(
vertical: 10,
horizontal: 15,
padding: const EdgeInsets.only(
top: 8,
bottom: 15,
left: 15,
right: 15,
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,