@@ -27,8 +27,8 @@ class IssueEditDialog extends StatefulWidget {
2727 {this .titleController, this .valueController, this .needTitle = true });
2828
2929 @override
30- _IssueEditDialogState createState () =>
31- _IssueEditDialogState ( this .dialogTitle, this .onTitleChanged, this .onContentChanged, this .onPressed, titleController, valueController, needTitle);
30+ _IssueEditDialogState createState () => _IssueEditDialogState (
31+ this .dialogTitle, this .onTitleChanged, this .onContentChanged, this .onPressed, titleController, valueController, needTitle);
3232}
3333
3434class _IssueEditDialogState extends State <IssueEditDialog > {
@@ -71,13 +71,13 @@ class _IssueEditDialogState extends State<IssueEditDialog> {
7171 mainAxisSize: MainAxisSize .min,
7272 children: < Widget > [
7373 new Padding (
74- padding: new EdgeInsets .all ( 5 .0 ),
74+ padding: new EdgeInsets .only (top : 5.0 , bottom : 15 .0 ),
7575 child: new Center (
7676 child: new Text (dialogTitle, style: GSYConstant .normalTextBold),
7777 )),
7878 title,
7979 new Container (
80- height: 300.0 ,
80+ height: MediaQuery . of (context).size.width * 3 / 4 ,
8181 decoration: new BoxDecoration (
8282 borderRadius: BorderRadius .all (Radius .circular (4.0 )),
8383 color: Colors .white,
@@ -101,13 +101,22 @@ class _IssueEditDialogState extends State<IssueEditDialog> {
101101 crossAxisAlignment: CrossAxisAlignment .center,
102102 children: < Widget > [
103103 new Expanded (
104- child: new FlatButton (
104+ child: new RawMaterialButton (
105+ materialTapTargetSize: MaterialTapTargetSize .shrinkWrap,
106+ padding: EdgeInsets .all (4.0 ),
107+ constraints: const BoxConstraints (minWidth: 0.0 , minHeight: 0.0 ),
105108 child: new Text (GSYStrings .app_cancel, style: GSYConstant .subNormalText),
106109 onPressed: () {
107110 Navigator .pop (context);
108111 })),
109- new Container (width: 0.3 , height: 30.0 , color: Color (GSYColors .subTextColor)),
110- new Expanded (child: new FlatButton (child: new Text (GSYStrings .app_ok, style: GSYConstant .normalTextBold), onPressed: onPressed)),
112+ new Container (width: 0.3 , height: 25.0 , color: Color (GSYColors .subTextColor)),
113+ new Expanded (
114+ child: new RawMaterialButton (
115+ materialTapTargetSize: MaterialTapTargetSize .shrinkWrap,
116+ padding: EdgeInsets .all (4.0 ),
117+ constraints: const BoxConstraints (minWidth: 0.0 , minHeight: 0.0 ),
118+ child: new Text (GSYStrings .app_ok, style: GSYConstant .normalTextBold),
119+ onPressed: onPressed)),
111120 ],
112121 )
113122 ],
0 commit comments