@@ -163,7 +163,7 @@ class UserHeaderItem extends StatelessWidget {
163163 ///用户组织
164164 new GSYIConText (
165165 GSYICons .USER_ITEM_COMPANY ,
166- userInfo.company == null ? GSYStrings .nothing_now : userInfo.company ,
166+ userInfo.company ?? GSYStrings .nothing_now,
167167 GSYConstant .subLightSmallText,
168168 Color (GSYColors .subLightTextColor),
169169 10.0 ,
@@ -173,7 +173,7 @@ class UserHeaderItem extends StatelessWidget {
173173 ///用户位置
174174 new GSYIConText (
175175 GSYICons .USER_ITEM_LOCATION ,
176- userInfo.location == null ? GSYStrings .nothing_now : userInfo.location ,
176+ userInfo.location ?? GSYStrings .nothing_now,
177177 GSYConstant .subLightSmallText,
178178 Color (GSYColors .subLightTextColor),
179179 10.0 ,
@@ -187,13 +187,26 @@ class UserHeaderItem extends StatelessWidget {
187187 new Container (
188188
189189 ///用户博客
190- child: new GSYIConText (
191- GSYICons .USER_ITEM_LINK ,
192- userInfo.blog == null ? GSYStrings .nothing_now : userInfo.blog,
193- GSYConstant .subLightSmallText,
194- Color (GSYColors .subLightTextColor),
195- 10.0 ,
196- padding: 3.0 ,
190+ child: new RawMaterialButton (
191+ onPressed: () {
192+ if (userInfo.blog != null ) {
193+ CommonUtils .launchOutURL (userInfo.blog);
194+ }
195+ },
196+ materialTapTargetSize: MaterialTapTargetSize .shrinkWrap,
197+ padding: const EdgeInsets .all (0.0 ),
198+ constraints: const BoxConstraints (minWidth: 0.0 , minHeight: 0.0 ),
199+ child: new GSYIConText (
200+ GSYICons .USER_ITEM_LINK ,
201+ userInfo.blog ?? GSYStrings .nothing_now,
202+ TextStyle (
203+ color: (userInfo.blog == null ) ? Color (GSYColors .subLightTextColor) : Color (GSYColors .actionBlue),
204+ fontSize: GSYConstant .smallTextSize,
205+ ),
206+ Color (GSYColors .subLightTextColor),
207+ 10.0 ,
208+ padding: 3.0 ,
209+ ),
197210 ),
198211 margin: new EdgeInsets .only (top: 6.0 , bottom: 2.0 ),
199212 alignment: Alignment .topLeft),
0 commit comments