@@ -29,7 +29,8 @@ class HomeDrawer extends StatelessWidget {
2929 context: context,
3030 builder: (BuildContext context) => AboutDialog (
3131 applicationName: GSYLocalizations .i18n (context)! .app_name,
32- applicationVersion: "${GSYLocalizations .i18n (context )!.app_version }: ${versionName ?? "" }" ,
32+ applicationVersion:
33+ "${GSYLocalizations .i18n (context )!.app_version }: ${versionName ?? "" }" ,
3334 applicationIcon: const Image (
3435 image: AssetImage (GSYICons .DEFAULT_USER_ICON ),
3536 width: 50.0 ,
@@ -91,9 +92,8 @@ class HomeDrawer extends StatelessWidget {
9192 onTap: () {},
9293 child: CircleAvatar (
9394 //圆形图标控件
94- backgroundImage: NetworkImage (
95- user.avatar_url ??
96- GSYICons .DEFAULT_REMOTE_PIC ),
95+ backgroundImage: NetworkImage (user.avatar_url ??
96+ GSYICons .DEFAULT_REMOTE_PIC ),
9797 ),
9898 ),
9999 decoration: BoxDecoration (
@@ -102,36 +102,42 @@ class HomeDrawer extends StatelessWidget {
102102 ),
103103 ),
104104 ListTile (
105- title: Text (
105+ title: Text (
106+ GSYLocalizations .i18n (context)! .home_reply,
107+ style: GSYConstant .normalText,
108+ ),
109+ onTap: () {
110+ String content = "" ;
111+ CommonUtils .showEditDialog (
112+ context,
106113 GSYLocalizations .i18n (context)! .home_reply,
107- style: GSYConstant .normalText,
108- ),
109- onTap: () {
110- String content = "" ;
111- CommonUtils .showEditDialog (
112- context,
113- GSYLocalizations .i18n (context)! .home_reply,
114- (title) {}, (res) {
114+ (title) {},
115+ (res) {
115116 content = res;
116- }, () {
117+ },
118+ () {
117119 if (content.isEmpty) {
118120 return ;
119121 }
120122 CommonUtils .showLoadingDialog (context);
121123 IssueDao .createIssueDao (
122124 "CarGuo" , "gsy_github_app_flutter" , {
123- "title" :
124- GSYLocalizations . i18n (context) ! .home_reply,
125+ "title" : GSYLocalizations . i18n (context) !
126+ .home_reply,
125127 "body" : content
126128 }).then ((result) {
127129 Navigator .pop (context);
128130 Navigator .pop (context);
129131 });
130132 },
131- titleController: TextEditingController (),
132- valueController: TextEditingController (),
133- needTitle: false );
134- }),
133+ titleController: TextEditingController (),
134+ valueController: TextEditingController (),
135+ needTitle: false ,
136+ hintText:
137+ GSYLocalizations .i18n (context)! .feed_back_tip,
138+ );
139+ },
140+ ),
135141 ListTile (
136142 title: Text (
137143 GSYLocalizations .i18n (context)! .home_history,
@@ -176,11 +182,9 @@ class HomeDrawer extends StatelessWidget {
176182 onTap: () {
177183 CommonUtils .showLanguageDialog (context);
178184 }),
179-
180185 ListTile (
181186 title: Text (
182- GSYLocalizations .i18n (context)!
183- .home_change_grey,
187+ GSYLocalizations .i18n (context)! .home_change_grey,
184188 style: GSYConstant .normalText,
185189 ),
186190 onTap: () {
@@ -201,7 +205,7 @@ class HomeDrawer extends StatelessWidget {
201205 .home_about,
202206 style: GSYConstant .normalText,
203207 ),
204- onLongPress: (){
208+ onLongPress: () {
205209 NavigatorUtils .goDebugDataPage (context);
206210 },
207211 onTap: () {
0 commit comments