Skip to content

Commit 5682dbd

Browse files
committed
add issue float action button
1 parent 318cd3a commit 5682dbd

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

‎lib/common/style/GSYStyle.dart‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,4 +253,5 @@ class GSYICons {
253253

254254
static IconData ISSUE_ITEM_ISSUE = new IconData(0xe661, fontFamily: GSYICons.FONT_FAMILY);
255255
static IconData ISSUE_ITEM_COMMENT = new IconData(0xe6ba, fontFamily: GSYICons.FONT_FAMILY);
256+
static IconData ISSUE_ITEM_ADD = new IconData(0xe662, fontFamily: GSYICons.FONT_FAMILY);
256257
}

‎lib/page/RepositoryDetailIssueList.dart‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ class _RepositoryDetailIssuePageState extends GSYListState<RepositoryDetailIssue
8989
Widget build(BuildContext context) {
9090
super.build(context); // See AutomaticKeepAliveClientMixin.
9191
return new Scaffold(
92+
floatingActionButton: new FloatingActionButton(
93+
child: new Icon(
94+
GSYICons.ISSUE_ITEM_ADD,
95+
size: 55.0,
96+
color: Color(GSYColors.textWhite),
97+
),
98+
onPressed: () {}),
9299
backgroundColor: Color(GSYColors.mainBackgroundColor),
93100
appBar: new AppBar(
94101
leading: new Container(),

‎lib/page/RepositoryDetailPage.dart‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,16 @@ class _RepositoryDetailPageState extends State<RepositoryDetailPage> {
131131
type: GSYTabBarWidget.TOP_TAB,
132132
tarWidgetControl: tarBarControl,
133133
tabItems: [
134-
new Tab(text: GSYStrings.repos_tab_readme),
135134
new Tab(text: GSYStrings.repos_tab_info),
136-
new Tab(text: GSYStrings.repos_tab_file),
137135
new Tab(text: GSYStrings.repos_tab_issue),
136+
new Tab(text: GSYStrings.repos_tab_file),
137+
new Tab(text: GSYStrings.repos_tab_readme),
138138
],
139139
tabViews: [
140-
new RepositoryDetailReadmePage(),
141140
new ReposDetailInfoPage(reposDetailInfoPageControl, userName, reposName),
141+
new RepositoryDetailIssuePage(userName, reposName),
142142
new Icon(GSYICons.MAIN_DT),
143-
new RepositoryDetailIssuePage(userName, reposName)
143+
new RepositoryDetailReadmePage(),
144144
],
145145
backgroundColor: GSYColors.primarySwatch,
146146
indicatorColor: Colors.white,

0 commit comments

Comments
 (0)