@@ -170,7 +170,7 @@ class UserInfoCard extends StatelessWidget {
170170 GestureDetector (
171171 onTap: () => Utils .copyText (data.uid.toString ()),
172172 child: Text (
173- 'uid : ${data .uid .toString ()}' ,
173+ 'UID : ${data .uid .toString ()}' ,
174174 style: const TextStyle (
175175 fontSize: 14 ,
176176 ),
@@ -207,18 +207,20 @@ class UserInfoCard extends StatelessWidget {
207207 padding: const EdgeInsets .only (left: 20 , top: 4 , right: 20 ),
208208 child: Row (
209209 children: [
210- Text (
211- '${data .feed .toString ()}动态' ,
212- style: const TextStyle (fontSize: 14 ),
213- ),
214- const SizedBox (width: 10 ),
215- Text (
216- '${data .beLikeNum .toString ()}赞' ,
217- style: const TextStyle (
218- fontSize: 14 ,
210+ Text .rich (
211+ TextSpan (
212+ children: [
213+ TextSpan (
214+ text: '${data .feed .toString ()} ' ,
215+ style: TextStyle (fontWeight: FontWeight .bold)),
216+ TextSpan (text: '动态 ' ),
217+ TextSpan (
218+ text: '${data .beLikeNum .toString ()} ' ,
219+ style: TextStyle (fontWeight: FontWeight .bold)),
220+ TextSpan (text: '赞 ' ),
221+ ],
219222 ),
220223 ),
221- const SizedBox (width: 10 ),
222224 GestureDetector (
223225 onTap: () => Get .toNamed (
224226 '/ffflist' ,
@@ -227,12 +229,15 @@ class UserInfoCard extends StatelessWidget {
227229 'uid' : data.uid.toString (),
228230 },
229231 ),
230- child: Text (
231- '${data .follow .toString ()}关注' ,
232- style: const TextStyle (fontSize: 14 ),
233- ),
232+ child: Text .rich (TextSpan (
233+ children: [
234+ TextSpan (
235+ text: '${data .follow .toString ()} ' ,
236+ style: TextStyle (fontWeight: FontWeight .bold)),
237+ TextSpan (text: '关注 ' ),
238+ ],
239+ )),
234240 ),
235- const SizedBox (width: 10 ),
236241 GestureDetector (
237242 onTap: () => Get .toNamed (
238243 '/ffflist' ,
@@ -241,10 +246,14 @@ class UserInfoCard extends StatelessWidget {
241246 'uid' : data.uid.toString (),
242247 },
243248 ),
244- child: Text (
245- '${data .fans .toString ()}粉丝' ,
246- style: const TextStyle (fontSize: 14 ),
247- ),
249+ child: Text .rich (TextSpan (
250+ children: [
251+ TextSpan (
252+ text: '${data .fans .toString ()} ' ,
253+ style: TextStyle (fontWeight: FontWeight .bold)),
254+ TextSpan (text: '粉丝' ),
255+ ],
256+ )),
248257 ),
249258 ],
250259 ),
0 commit comments