@@ -14,111 +14,113 @@ class TrendPageItem extends StatelessWidget {
14
14
Widget build (BuildContext context) {
15
15
return Card (
16
16
margin: EdgeInsets .fromLTRB (8 , 8 , 8 , 4 ),
17
- child: InkWell (
18
- onTap: () => NavigationUtil .push (REPOS_DETAIL_PAGE , arguments: {
19
- "web_url" : trendModel.url,
20
- "owner" : trendModel.name,
21
- "repo" : trendModel.reposName
22
- }),
23
- child: Padding (
24
- padding: EdgeInsets .all (8 ),
25
- child: Row (
26
- crossAxisAlignment: CrossAxisAlignment .start,
27
- children: < Widget > [
28
- ClipOval (
29
- child: CachedNetworkImage (
30
- imageUrl: trendModel.contributorsUrl,
31
- height: 40 ,
32
- width: 40 ,
33
- fit: BoxFit .cover),
34
- ),
35
- Expanded (
36
- child: Padding (
37
- padding: EdgeInsets .only (left: 8 ),
38
- child: Column (
39
- crossAxisAlignment: CrossAxisAlignment .start,
40
- children: < Widget > [
41
- Row (
42
- mainAxisAlignment: MainAxisAlignment .spaceBetween,
43
- children: < Widget > [
44
- Expanded (
45
- child: Text (
46
- trendModel.reposName,
47
- overflow: TextOverflow .ellipsis,
48
- style: TextStyle (
49
- color: DColor .themeColor,
50
- fontSize: 16 ,
51
- fontWeight: FontWeight .bold),
52
- )),
53
- Container (
54
- margin: EdgeInsets .only (left: 10 ),
55
- child: Text (
56
- trendModel.language,
57
- style: TextStyle (
58
- color: DColor .desTextColor, fontSize: 12 ),
59
- ),
60
- )
61
- ],
62
- ),
63
- Text (
64
- trendModel.description,
65
- style:
66
- TextStyle (color: DColor .desTextColor, fontSize: 14 ),
67
- ),
68
- Padding (
69
- padding: EdgeInsets .only (top: 4 ),
70
- child: Row (
71
- mainAxisAlignment: MainAxisAlignment .spaceBetween,
17
+ child: Material (
18
+ child: InkWell (
19
+ onTap: () => NavigationUtil .push (REPOS_DETAIL_PAGE , arguments: {
20
+ "web_url" : trendModel.url,
21
+ "owner" : trendModel.name,
22
+ "repo" : trendModel.reposName
23
+ }),
24
+ child: Padding (
25
+ padding: EdgeInsets .all (8 ),
26
+ child: Row (
27
+ crossAxisAlignment: CrossAxisAlignment .start,
28
+ children: < Widget > [
29
+ ClipOval (
30
+ child: CachedNetworkImage (
31
+ imageUrl: trendModel.contributorsUrl,
32
+ height: 40 ,
33
+ width: 40 ,
34
+ fit: BoxFit .cover),
35
+ ),
36
+ Expanded (
37
+ child: Padding (
38
+ padding: EdgeInsets .only (left: 8 ),
39
+ child: Column (
40
+ crossAxisAlignment: CrossAxisAlignment .start,
72
41
children: < Widget > [
73
- Column (
74
- mainAxisAlignment: MainAxisAlignment .center ,
42
+ Row (
43
+ mainAxisAlignment: MainAxisAlignment .spaceBetween ,
75
44
children: < Widget > [
76
- Icon (
77
- Icons .star_border,
78
- color: DColor .desTextColor,
79
- size: 20 ,
80
- ),
81
- Text (
82
- trendModel.starCount,
83
- style: TextStyle (color: DColor .desTextColor),
45
+ Expanded (
46
+ child: Text (
47
+ trendModel.reposName,
48
+ overflow: TextOverflow .ellipsis,
49
+ style: TextStyle (
50
+ color: DColor .themeColor,
51
+ fontSize: 16 ,
52
+ fontWeight: FontWeight .bold),
53
+ )),
54
+ Container (
55
+ margin: EdgeInsets .only (left: 10 ),
56
+ child: Text (
57
+ trendModel.language,
58
+ style: TextStyle (
59
+ color: DColor .desTextColor, fontSize: 12 ),
60
+ ),
84
61
)
85
62
],
86
63
),
87
- Column (
88
- mainAxisAlignment: MainAxisAlignment .center,
89
- children: < Widget > [
90
- Icon (
91
- Icons .device_hub,
92
- color: DColor .desTextColor,
93
- size: 20 ,
94
- ),
95
- Text (
96
- trendModel.forkCount,
97
- style: TextStyle (color: DColor .desTextColor),
98
- )
99
- ],
64
+ Text (
65
+ trendModel.description,
66
+ style:
67
+ TextStyle (color: DColor .desTextColor, fontSize: 14 ),
100
68
),
101
- Column (
102
- mainAxisAlignment: MainAxisAlignment .center,
103
- children: < Widget > [
104
- Icon (
105
- Icons .remove_red_eye,
106
- color: DColor .desTextColor,
107
- size: 20 ,
108
- ),
109
- Text (
110
- trendModel.meta,
111
- style: TextStyle (color: DColor .desTextColor),
112
- )
113
- ],
69
+ Padding (
70
+ padding: EdgeInsets .only (top: 4 ),
71
+ child: Row (
72
+ mainAxisAlignment: MainAxisAlignment .spaceBetween,
73
+ children: < Widget > [
74
+ Column (
75
+ mainAxisAlignment: MainAxisAlignment .center,
76
+ children: < Widget > [
77
+ Icon (
78
+ Icons .star_border,
79
+ color: DColor .desTextColor,
80
+ size: 20 ,
81
+ ),
82
+ Text (
83
+ trendModel.starCount,
84
+ style: TextStyle (color: DColor .desTextColor),
85
+ )
86
+ ],
87
+ ),
88
+ Column (
89
+ mainAxisAlignment: MainAxisAlignment .center,
90
+ children: < Widget > [
91
+ Icon (
92
+ Icons .device_hub,
93
+ color: DColor .desTextColor,
94
+ size: 20 ,
95
+ ),
96
+ Text (
97
+ trendModel.forkCount,
98
+ style: TextStyle (color: DColor .desTextColor),
99
+ )
100
+ ],
101
+ ),
102
+ Column (
103
+ mainAxisAlignment: MainAxisAlignment .center,
104
+ children: < Widget > [
105
+ Icon (
106
+ Icons .remove_red_eye,
107
+ color: DColor .desTextColor,
108
+ size: 20 ,
109
+ ),
110
+ Text (
111
+ trendModel.meta,
112
+ style: TextStyle (color: DColor .desTextColor),
113
+ )
114
+ ],
115
+ )
116
+ ],
117
+ ),
114
118
)
115
119
],
116
120
),
117
- )
118
- ],
119
- ),
120
- ))
121
- ],
121
+ ))
122
+ ],
123
+ ),
122
124
),
123
125
),
124
126
),
0 commit comments