@@ -83,6 +83,7 @@ class UserHeaderItem extends StatelessWidget {
8383 padding: EdgeInsets .only (left: 10.0 , right: 10.0 ),
8484 width: width,
8585 height: height,
86+
8687 ///svg chart
8788 child: new SvgPicture .network (
8889 CommonUtils .getUserChartAddress (userInfo.login),
@@ -93,7 +94,7 @@ class UserHeaderItem extends StatelessWidget {
9394 height: height,
9495 width: width,
9596 child: Center (
96- child: const SpinKitRipple (color: Color (GSYColors .primaryValue)),
97+ child: const SpinKitRipple (color: Color (GSYColors .primaryValue)),
9798 ),
9899 ),
99100 ),
@@ -126,16 +127,25 @@ class UserHeaderItem extends StatelessWidget {
126127 crossAxisAlignment: CrossAxisAlignment .start,
127128 children: < Widget > [
128129 ///用户头像
129- new ClipOval (
130- child: new FadeInImage .assetNetwork (
131- placeholder: GSYICons .DEFAULT_USER_ICON ,
132- //预览图
133- fit: BoxFit .fitWidth,
134- image: userInfo.avatar_url ?? GSYICons .DEFAULT_REMOTE_PIC ,
135- width: 80.0 ,
136- height: 80.0 ,
137- ),
138- ),
130+ new RawMaterialButton (
131+ onPressed: () {
132+ if (userInfo.avatar_url != null ) {
133+ NavigatorUtils .gotoPhotoViewPage (context, userInfo.avatar_url);
134+ }
135+ },
136+ materialTapTargetSize: MaterialTapTargetSize .shrinkWrap,
137+ padding: const EdgeInsets .all (0.0 ),
138+ constraints: const BoxConstraints (minWidth: 0.0 , minHeight: 0.0 ),
139+ child: new ClipOval (
140+ child: new FadeInImage .assetNetwork (
141+ placeholder: GSYICons .DEFAULT_USER_ICON ,
142+ //预览图
143+ fit: BoxFit .fitWidth,
144+ image: userInfo.avatar_url ?? GSYICons .DEFAULT_REMOTE_PIC ,
145+ width: 80.0 ,
146+ height: 80.0 ,
147+ ),
148+ )),
139149 new Padding (padding: EdgeInsets .all (10.0 )),
140150 new Expanded (
141151 child: new Column (
0 commit comments