Skip to content

Commit fa19aef

Browse files
committed
替换颜色
1 parent 9746ff5 commit fa19aef

File tree

12 files changed

+16
-16
lines changed

12 files changed

+16
-16
lines changed

lib/common/style/GSYStyle.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ class GSYStrings {
264264

265265
static const String nothing_now = "目前什么都没有。";
266266
static const String loading_text = "努力加载中···";
267-
static const String load_more_text = "加载中···";
268267

269268
static const String option_web = "浏览器打开";
270269
static const String option_copy = "复制链接";

lib/common/utils/CommonUtils.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class CommonUtils {
169169
child: new Column(
170170
mainAxisAlignment: MainAxisAlignment.center,
171171
children: <Widget>[
172-
new Container(child: SpinKitCubeGrid(color: Colors.white)),
172+
new Container(child: SpinKitCubeGrid(color: Color(GSYColors.white))),
173173
new Container(height: 10.0),
174174
new Container(child: new Text(GSYStrings.loading_text, style: GSYConstant.normalTextWhite)),
175175
],
@@ -219,7 +219,7 @@ class CommonUtils {
219219
padding: new EdgeInsets.all(4.0),
220220
margin: new EdgeInsets.all(20.0),
221221
decoration: new BoxDecoration(
222-
color: Colors.white,
222+
color: Color(GSYColors.white),
223223
//用一个BoxDecoration装饰器提供背景图片
224224
borderRadius: BorderRadius.all(Radius.circular(4.0)),
225225
),

lib/page/HomePage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class HomePage extends StatelessWidget {
7171
new MyPage(),
7272
],
7373
backgroundColor: GSYColors.primarySwatch,
74-
indicatorColor: Colors.white,
74+
indicatorColor:Color(GSYColors.white),
7575
title: GSYTitleBar(
7676
GSYStrings.app_name,
7777
iconData: GSYICons.MAIN_SEARCH,

lib/page/IssueDetailPage.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,29 +78,29 @@ class _IssueDetailPageState extends GSYListState<IssueDetailPage> {
7878
child: new Container(
7979
decoration: new BoxDecoration(
8080
borderRadius: BorderRadius.all(Radius.circular(4.0)),
81-
color: Colors.white,
81+
color: Color(GSYColors.white),
8282
border: new Border.all(color: Color(GSYColors.subTextColor), width: 0.3)),
8383
margin: EdgeInsets.all(10.0),
8484
child: Column(
8585
mainAxisSize: MainAxisSize.min,
8686
mainAxisAlignment: MainAxisAlignment.center,
8787
children: <Widget>[
8888
new GSYFlexButton(
89-
color: Colors.white,
89+
color: Color(GSYColors.white),
9090
text: GSYStrings.issue_edit_issue_edit_commit,
9191
onPress: () {
9292
_editCommit(issue.id.toString(), issue.body);
9393
},
9494
),
9595
new GSYFlexButton(
96-
color: Colors.white,
96+
color:Color(GSYColors.white),
9797
text: GSYStrings.issue_edit_issue_delete_commit,
9898
onPress: () {
9999
_deleteCommit(issue.id.toString());
100100
},
101101
),
102102
new GSYFlexButton(
103-
color: Colors.white,
103+
color: Color(GSYColors.white),
104104
text: GSYStrings.issue_edit_issue_copy_commit,
105105
onPress: () {
106106
CommonUtils.copy(issue.body);

lib/page/MyPage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class _MyPageState extends GSYListState<MyPage> {
8383
_refreshNotify() {
8484
UserDao.getNotifyDao(false, false, 0).then((res) {
8585
if (res != null && res.result && res.data.length > 0) {
86-
notifyColor = Colors.blue;
86+
notifyColor = Color(GSYColors.actionBlue);
8787
} else {
8888
notifyColor = Color(GSYColors.subTextColor);
8989
}

lib/page/RepositoryDetailPage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class _RepositoryDetailPageState extends State<RepositoryDetailPage> {
253253
],
254254
topPageControl: topPageControl,
255255
backgroundColor: GSYColors.primarySwatch,
256-
indicatorColor: Colors.white,
256+
indicatorColor: Color(GSYColors.white),
257257
title: new GSYTitleBar(
258258
reposName,
259259
rightWidget: widget,

lib/page/TrendPage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class _TrendPageState extends GSYListState<TrendPage> {
5050
});
5151
showRefreshLoading();
5252
}),
53-
new Container(height: 10.0, width: 0.5, color: Colors.white),
53+
new Container(height: 10.0, width: 0.5, color: Color(GSYColors.white)),
5454
_renderHeaderPopItem(selectType.name, trendType, (TrendTypeModel result) {
5555
setState(() {
5656
selectType = result;

lib/page/UserProfilePage.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class _UserProfileState extends State<UserProfileInfo> {
105105
return Scaffold(
106106
appBar: new AppBar(title: new Text(GSYStrings.home_user_info)),
107107
body: new Container(
108-
color: Colors.white,
108+
color: Color(GSYColors.white),
109109
child: new SingleChildScrollView(
110110
child: new Column(
111111
children: _renderList(store.state.userInfo, store),

lib/page/WelcomePage.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
44
import 'package:flutter_redux/flutter_redux.dart';
55
import 'package:gsy_github_app_flutter/common/dao/UserDao.dart';
66
import 'package:gsy_github_app_flutter/common/redux/GSYState.dart';
7+
import 'package:gsy_github_app_flutter/common/style/GSYStyle.dart';
78
import 'package:gsy_github_app_flutter/common/utils/CommonUtils.dart';
89
import 'package:gsy_github_app_flutter/common/utils/NavigatorUtils.dart';
910
import 'package:redux/redux.dart';
@@ -32,7 +33,7 @@ class WelcomePage extends StatelessWidget {
3233
return StoreBuilder<GSYState>(
3334
builder: (context, store) {
3435
return new Container(
35-
color: Colors.white,
36+
color: Color(GSYColors.white),
3637
child: new Center(
3738
child: new Image(image: new AssetImage('static/images/welcome.png')),
3839
),

lib/widget/GSYSearchInputWidget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class GSYSearchInputWidget extends StatelessWidget {
2020
return new Container(
2121
decoration: new BoxDecoration(
2222
borderRadius: BorderRadius.all(Radius.circular(4.0)),
23-
color: Colors.white,
23+
color: Color(GSYColors.white),
2424
border: new Border.all(color: Color(GSYColors.primaryValue), width: 0.3),
2525
boxShadow: [BoxShadow(color: Color(GSYColors.primaryDarkValue), blurRadius: 4.0)]),
2626
padding: new EdgeInsets.only(left: 20.0, top: 12.0, right: 20.0, bottom: 12.0),

0 commit comments

Comments
 (0)