Skip to content
Permalink
Browse files

format

  • Loading branch information...
Sleaf committed May 4, 2019
1 parent da52649 commit 704361822f7fc73adba608bb479d588fa361c686
@@ -13,4 +13,4 @@ const API_STATUS_CATEGORY = '/rest/api/2/statuscategory';
// projects
const API_PROJECT = '/rest/api/2/project';
const API_SEARCH = '/rest/api/2/search';
const API_FAVOURITE_FILTER= '/rest/api/2/filter/favourite';
const API_FAVOURITE_FILTER = '/rest/api/2/filter/favourite';
@@ -111,7 +111,7 @@ class zh_CN extends S {
@override
String get validator_hostname_regx => "服务器地址必须以http(s)://开头";
@override
String get validator_username_required => "请填写密码";
String get validator_username_required => "请填写用户名";
@override
String get no_more_data => "没有更多数据";
@override
@@ -160,7 +160,7 @@ class _DashboardState extends State<Dashboard> with TickerProviderStateMixin {
: Text(S.of(context).dashboard),
bottom: TabBar(
controller: _tabController,
labelPadding: const EdgeInsets.symmetric(
labelPadding: EdgeInsets.symmetric(
vertical: 5,
horizontal: 15,
),
@@ -305,7 +305,7 @@ class _DashboardState extends State<Dashboard> with TickerProviderStateMixin {
return Drawer(
//侧边栏按钮Drawer
child: ListView(
padding: const EdgeInsets.all(0.0),
padding: EdgeInsets.all(0.0),
children: listItems,
),
);
@@ -152,7 +152,7 @@ class _IssueState extends State<Issue> with SingleTickerProviderStateMixin {
trailing: Wrap(
children: <Widget>[
Container(
margin: const EdgeInsets.only(right: 2),
margin: EdgeInsets.only(right: 2),
height: textHeight,
child: Image(image: NetworkImageWithCookie(payload['status']['iconUrl'])),
),
@@ -174,7 +174,7 @@ class _IssueState extends State<Issue> with SingleTickerProviderStateMixin {
trailing: Wrap(
children: <Widget>[
Container(
margin: const EdgeInsets.only(right: 2),
margin: EdgeInsets.only(right: 2),
height: textHeight,
child: CustomSvg(
$_get(payload, ['issuetype', 'iconUrl']),
@@ -199,7 +199,7 @@ class _IssueState extends State<Issue> with SingleTickerProviderStateMixin {
trailing: Wrap(
children: <Widget>[
Container(
margin: const EdgeInsets.only(right: 2),
margin: EdgeInsets.only(right: 2),
height: textHeight,
child: CustomSvg(
$_get(payload, ['priority', 'iconUrl']),
@@ -362,7 +362,7 @@ class LargeItem extends StatelessWidget {
);
}
return Container(
margin: const EdgeInsets.only(top: 10, bottom: 20),
margin: EdgeInsets.only(top: 10, bottom: 20),
child: Row(
mainAxisAlignment:
this.createIcon == null ? MainAxisAlignment.start : MainAxisAlignment.spaceBetween,
@@ -405,7 +405,7 @@ class CommentInput extends StatelessWidget {
return Container(
width: MediaQuery.of(context).size.width * .8,
color: Theme.of(context).backgroundColor,
padding: const EdgeInsets.all(20),
padding: EdgeInsets.all(20),
child: Form(
key: _formKey, //设置globalKey,用于后面获取FormState
child: Wrap(
@@ -466,7 +466,7 @@ class _WorkLogInputState extends State<WorkLogInput> {
return Container(
width: MediaQuery.of(context).size.width * .9,
color: Theme.of(context).backgroundColor,
padding: const EdgeInsets.all(20),
padding: EdgeInsets.all(20),
child: Form(
key: _formKey, //设置globalKey,用于后面获取FormState
child: Wrap(
@@ -477,7 +477,7 @@ class _WorkLogInputState extends State<WorkLogInput> {
style: Theme.of(context).textTheme.title,
),
Container(
margin: const EdgeInsets.symmetric(vertical: 5, horizontal: 10),
margin: EdgeInsets.symmetric(vertical: 5, horizontal: 10),
width: double.infinity,
child: RaisedButton(
color: Theme.of(context).backgroundColor,
@@ -496,7 +496,7 @@ class _WorkLogInputState extends State<WorkLogInput> {
Icon(Icons.access_time),
Container(
alignment: Alignment.center,
margin: const EdgeInsets.only(left: 10),
margin: EdgeInsets.only(left: 10),
child: Text(formatDateTimeString(
context: context,
date: _workTime,
@@ -61,13 +61,13 @@ class _LoginState extends State<Login> {
converter: (store) => store.state,
builder: (context, state) {
return Container(
padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 24.0),
padding: EdgeInsets.symmetric(vertical: 16.0, horizontal: 24.0),
decoration: BoxDecoration(color: Color.fromRGBO(240, 240, 240, .5)),
child: Column(
children: <Widget>[
Container(
height: 100,
margin: const EdgeInsets.only(top: 75, bottom: 20),
margin: EdgeInsets.only(top: 75, bottom: 20),
child: Image(
image: AssetImage("assets/images/logo.png"),
),
@@ -127,7 +127,7 @@ class _LoginState extends State<Login> {
),
// 登录按钮
Padding(
padding: const EdgeInsets.only(top: 28.0),
padding: EdgeInsets.only(top: 28.0),
child: Row(
children: <Widget>[
Expanded(
@@ -227,7 +227,7 @@ class _NewIssueState extends State<NewIssue> with SingleTickerProviderStateMixin
});
},
child: Container(
padding: const EdgeInsets.symmetric(horizontal: 10),
padding: EdgeInsets.symmetric(horizontal: 10),
child: Text(
S.of(context).assign_to_me,
style: TextStyle(
@@ -17,7 +17,7 @@ showCustomDialog({
buildWidgets.add(GestureDetector(
onTap: () => Navigator.pop(context),
child: Container(
padding: const EdgeInsets.all(10),
padding: EdgeInsets.all(10),
child: Icon(
Icons.close,
size: 24,
@@ -23,5 +23,5 @@ Future<DateTime> showDateTimePicker({
if (time == null) {
return initialDate;
}
return date.add(Duration(hours: time.hour, minutes: time.minute));;
return date.add(Duration(hours: time.hour, minutes: time.minute));
}
@@ -13,11 +13,10 @@ class LocalNotification {
'your channel id', 'your channel name', 'your channel description',
importance: Importance.Max, priority: Priority.High);
var iOSPlatformChannelSpecifics = IOSNotificationDetails();
var platformChannelSpecifics = NotificationDetails(
androidPlatformChannelSpecifics, iOSPlatformChannelSpecifics);
var platformChannelSpecifics =
NotificationDetails(androidPlatformChannelSpecifics, iOSPlatformChannelSpecifics);

_notification.show(0, '这是一条测试通知【标题】', '这是通知主体', platformChannelSpecifics,
payload: '可携带数据');
_notification.show(0, '这是一条测试通知【标题】', '这是通知主体', platformChannelSpecifics, payload: '可携带数据');
}

LocalNotification({this.onSelect}) {
@@ -11,8 +11,8 @@ class EndLine extends StatelessWidget {
children: <Widget>[
Expanded(child: Divider()),
Container(
margin: const EdgeInsets.only(bottom: 10),
padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 10),
margin: EdgeInsets.only(bottom: 10),
padding: EdgeInsets.symmetric(vertical: 10, horizontal: 10),
child: Text(
this.text,
textAlign: TextAlign.center,
@@ -16,7 +16,7 @@ class UserDisplay extends StatelessWidget {
CustomAvatar(
getAvatarUrl(this.userData),
squareSize: 20,
margin: const EdgeInsets.only(right: 5),
margin: EdgeInsets.only(right: 5),
),
Text(
$_get(
@@ -41,7 +41,7 @@
"coming_soon": "施工中...",
"validator_hostname_required": "请填写服务器地址",
"validator_hostname_regx": "服务器地址必须以http(s)://开头",
"validator_username_required": "请填写密码",
"validator_username_required": "请填写用户名",
"validator_comments_required": "请填写注释内容",
"validator_password_required": "请填写密码",
"validator_comment_required": "请填写注释",

0 comments on commit 7043618

Please sign in to comment.
You can’t perform that action at this time.