Skip to content

Commit 2e6bd93

Browse files
committed
fixed: 修改issue页面展示方式
1 parent 0f7ab5a commit 2e6bd93

File tree

1 file changed

+35
-23
lines changed

1 file changed

+35
-23
lines changed

lib/page/comment/index.dart

Lines changed: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,32 @@ class _IndexState extends State<Index> {
6060
Column(
6161
crossAxisAlignment: CrossAxisAlignment.start,
6262
children: <Widget>[
63-
AspectRatio(
64-
aspectRatio: 16/9,
65-
child: ClipRRect(
66-
borderRadius: BorderRadius.only(
67-
topLeft: Radius.circular(6.0),
68-
topRight: Radius.circular(6.0),
69-
bottomLeft: Radius.circular(6.0),
70-
bottomRight: Radius.circular(6.0)
71-
),
72-
child: Image.network(
63+
// AspectRatio(
64+
// aspectRatio: 16/9,
65+
// child: ClipRRect(
66+
// borderRadius: BorderRadius.only(
67+
// topLeft: Radius.circular(6.0),
68+
// topRight: Radius.circular(6.0),
69+
// bottomLeft: Radius.circular(6.0),
70+
// bottomRight: Radius.circular(6.0)
71+
// ),
72+
// child: Image.network(
73+
// issuesContent.user.avatarUrl??'http://thumb10.jfcdns.com/2018-06/bce5b10ae530f530.png',
74+
// fit: BoxFit.cover,
75+
// ),
76+
// ),
77+
// ),
78+
ListTile(
79+
leading: CircleAvatar(
80+
backgroundImage: NetworkImage(
7381
issuesContent.user.avatarUrl??'http://thumb10.jfcdns.com/2018-06/bce5b10ae530f530.png',
74-
fit: BoxFit.cover,
7582
),
7683
),
84+
title: Text('${issuesContent.user.login}', style: TextStyle(color: Theme.of(context).primaryColor),),
85+
subtitle: Text('更新时间:${issuesContent.updatedAt}'),
86+
trailing: Icon(
87+
Icons.keyboard_arrow_right
88+
),
7789
),
7890
Container(
7991
padding: EdgeInsets.fromLTRB(20.0, 20, 20, 0),
@@ -107,18 +119,18 @@ class _IndexState extends State<Index> {
107119
)
108120
],
109121
),
110-
Positioned(
111-
top: 10,
112-
left: 10,
113-
child: Text(
114-
issuesContent.user.login,
115-
style: TextStyle(
116-
color: Theme.of(context).primaryColor,
117-
fontWeight: FontWeight.bold,
118-
fontSize: 20
119-
),
120-
),
121-
)
122+
// Positioned(
123+
// top: 10,
124+
// left: 10,
125+
// child: Text(
126+
// issuesContent.user.login,
127+
// style: TextStyle(
128+
// color: Theme.of(context).primaryColor,
129+
// fontWeight: FontWeight.bold,
130+
// fontSize: 20
131+
// ),
132+
// ),
133+
// )
122134
],
123135
)
124136
),

0 commit comments

Comments
 (0)