@@ -82,6 +82,27 @@ class MomentItemWidget extends StatelessWidget {
82
82
child: Text ('${moment .from }' , style: TextStyle (color: Colors .grey[500 ], fontSize: 13 ),),
83
83
) : Container ();
84
84
85
+ // 链接
86
+ Widget _linkWidget = moment.linkModal != null ?
87
+ Container (
88
+ color: Color (AppColors .BackgroundColor ),
89
+ padding: EdgeInsets .all (5.0 ),
90
+ margin: EdgeInsets .only (top: 10.0 , right: 10.0 ),
91
+ child: Row (
92
+ crossAxisAlignment: CrossAxisAlignment .center,
93
+ children: < Widget > [
94
+ Image .asset (
95
+ 'assets/images/moments_bg.png' ,
96
+ width: 50.0 ,
97
+ height: 50.0 ,
98
+ ),
99
+ SizedBox (width: 10.0 ,),
100
+ Expanded (
101
+ child: Text ('测试链接,测试中。。。' , maxLines: 1 , style: TextStyle (fontSize: 16.0 ,),),
102
+ ),
103
+ ],
104
+ ),
105
+ ) : Container ();
85
106
86
107
return Container (
87
108
padding: EdgeInsets .all (10.0 ),
@@ -115,7 +136,7 @@ class MomentItemWidget extends StatelessWidget {
115
136
crossAxisAlignment: CrossAxisAlignment .start,
116
137
children: < Widget > [
117
138
// 昵称
118
- Text ('${moment .nickname }' , style: TextStyle (color: Color (0xff576b95 ), fontSize: 16 .0 , fontWeight: FontWeight .bold),),
139
+ Text ('${moment .nickname }' , style: TextStyle (color: Color (0xff576b95 ), fontSize: 20 .0 , fontWeight: FontWeight .bold),),
119
140
120
141
// 文字部分
121
142
Offstage (
@@ -133,6 +154,8 @@ class MomentItemWidget extends StatelessWidget {
133
154
_imagesGrid,
134
155
// 视频
135
156
_videoWidget,
157
+ // 链接
158
+ _linkWidget,
136
159
137
160
// 定位地址
138
161
Container (
0 commit comments