|
| 1 | +import 'package:flutter/material.dart'; |
| 2 | +import 'package:gsy_github_app_flutter/common/style/GSYStyle.dart'; |
| 3 | +import 'package:gsy_github_app_flutter/widget/GSYCardItem.dart'; |
| 4 | +import 'package:gsy_github_app_flutter/widget/GSYInputWidget.dart'; |
| 5 | + |
| 6 | +/** |
| 7 | + * issue 编辑输入框 |
| 8 | + * Created by guoshuyu |
| 9 | + * on 2018/7/21. |
| 10 | + */ |
| 11 | +class IssueEditDialog extends StatefulWidget { |
| 12 | + @override |
| 13 | + _IssueEditDialogState createState() => _IssueEditDialogState(); |
| 14 | +} |
| 15 | + |
| 16 | +class _IssueEditDialogState extends State<IssueEditDialog> { |
| 17 | + @override |
| 18 | + Widget build(BuildContext context) { |
| 19 | + return new GSYCardItem( |
| 20 | + margin: EdgeInsets.all(30.0), |
| 21 | + shape: new RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(10.0))), |
| 22 | + child: new Padding( |
| 23 | + padding: new EdgeInsets.all(12.0), |
| 24 | + child: new Column( |
| 25 | + mainAxisSize: MainAxisSize.min, |
| 26 | + children: <Widget>[ |
| 27 | + new Container(height: 10.0), |
| 28 | + new Center(child: new Text("Title")), |
| 29 | + new GSYInputWidget( |
| 30 | + hintText: GSYStrings.login_password_hint_text, |
| 31 | + obscureText: false, |
| 32 | + ), |
| 33 | + new Container(height: 10.0), |
| 34 | + new Container( |
| 35 | + height: 300.0, |
| 36 | + decoration: new BoxDecoration( |
| 37 | + borderRadius: BorderRadius.all(Radius.circular(4.0)), |
| 38 | + color: Colors.white, |
| 39 | + border: new Border.all(color: Color(GSYColors.subTextColor), width: 1.0), |
| 40 | + ), |
| 41 | + padding: new EdgeInsets.only(left: 20.0, top: 12.0, right: 20.0, bottom: 12.0), |
| 42 | + child: new TextField( |
| 43 | + autofocus: false, |
| 44 | + decoration: new InputDecoration.collapsed( |
| 45 | + hintText: GSYStrings.repos_issue_search, |
| 46 | + hintStyle: GSYConstant.middleSubText, |
| 47 | + ), |
| 48 | + style: GSYConstant.middleText, |
| 49 | + ), |
| 50 | + ), |
| 51 | + new Container(height: 10.0), |
| 52 | + new Row( |
| 53 | + crossAxisAlignment: CrossAxisAlignment.center, |
| 54 | + children: <Widget>[ |
| 55 | + new Expanded(child: new FlatButton(child: new Text("FFF"), onPressed: () {})), |
| 56 | + new Container(width: 0.3, height: 30.0, color: Color(GSYColors.subTextColor)), |
| 57 | + new Expanded(child: new FlatButton(child: new Text("FFF"), onPressed: () {})), |
| 58 | + ], |
| 59 | + ) |
| 60 | + ], |
| 61 | + ), |
| 62 | + ), |
| 63 | + ); |
| 64 | + } |
| 65 | +} |
0 commit comments