@@ -60,20 +60,32 @@ class _IndexState extends State<Index> {
60
60
Column (
61
61
crossAxisAlignment: CrossAxisAlignment .start,
62
62
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 (
73
81
issuesContent.user.avatarUrl?? 'http://thumb10.jfcdns.com/2018-06/bce5b10ae530f530.png' ,
74
- fit: BoxFit .cover,
75
82
),
76
83
),
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
+ ),
77
89
),
78
90
Container (
79
91
padding: EdgeInsets .fromLTRB (20.0 , 20 , 20 , 0 ),
@@ -107,18 +119,18 @@ class _IndexState extends State<Index> {
107
119
)
108
120
],
109
121
),
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
+ // )
122
134
],
123
135
)
124
136
),
0 commit comments