@@ -6,6 +6,7 @@ import 'package:gsy_github_app_flutter/common/dao/EventDao.dart';
66import 'package:gsy_github_app_flutter/common/dao/ReposDao.dart' ;
77import 'package:gsy_github_app_flutter/common/dao/UserDao.dart' ;
88import 'package:gsy_github_app_flutter/common/model/User.dart' ;
9+ import 'package:gsy_github_app_flutter/common/net/Address.dart' ;
910import 'package:gsy_github_app_flutter/common/style/GSYStyle.dart' ;
1011import 'package:gsy_github_app_flutter/common/utils/CommonUtils.dart' ;
1112import 'package:gsy_github_app_flutter/common/utils/NavigatorUtils.dart' ;
@@ -44,6 +45,9 @@ class _PersonState extends GSYListState<PersonPage> {
4445
4546 User userInfo = User .empty ();
4647
48+
49+ String launchUrl = "" ;
50+
4751 _PersonState (this .userName);
4852
4953 @override
@@ -67,6 +71,7 @@ class _PersonState extends GSYListState<PersonPage> {
6771 pullLoadWidgetControl.dataList.clear ();
6872 setState (() {
6973 pullLoadWidgetControl.dataList.addAll (res.data);
74+ launchUrl = Address .hostWeb + userInfo.login;
7075 });
7176 }
7277 resolveDataResult (res);
@@ -140,7 +145,7 @@ class _PersonState extends GSYListState<PersonPage> {
140145 appBar: new AppBar (
141146 title: GSYTitleBar (
142147 (userInfo != null && userInfo.login != null ) ? userInfo.login : "" ,
143- rightWidget: GSYCommonOptionWidget (),
148+ rightWidget: GSYCommonOptionWidget (launchUrl ),
144149 )
145150 ),
146151 floatingActionButton: new FloatingActionButton (
@@ -149,7 +154,7 @@ class _PersonState extends GSYListState<PersonPage> {
149154 if (focus == '' ) {
150155 return ;
151156 }
152- if (userInfo.type == "Organization" ) {
157+ if (userInfo.type == "Organization" ) {
153158 Fluttertoast .showToast (msg: GSYStrings .user_focus_no_support);
154159 return ;
155160 }
@@ -161,7 +166,7 @@ class _PersonState extends GSYListState<PersonPage> {
161166 }),
162167 body: GSYPullLoadWidget (
163168 pullLoadWidgetControl,
164- (BuildContext context, int index) => _renderEventItem (index),
169+ (BuildContext context, int index) => _renderEventItem (index),
165170 handleRefresh,
166171 onLoadMore,
167172 refreshKey: refreshIndicatorKey,
0 commit comments