X Tutup
Skip to content

Commit 90aeac1

Browse files
committed
readme
1 parent e6852c3 commit 90aeac1

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

lib/page/RepositoryDetailPage.dart

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'package:flutter/material.dart';
2+
import 'package:fluttertoast/fluttertoast.dart';
23
import 'package:gsy_github_app_flutter/common/config/Config.dart';
34
import 'package:gsy_github_app_flutter/common/dao/ReposDao.dart';
45
import 'package:gsy_github_app_flutter/common/style/GSYStyle.dart';
@@ -216,16 +217,20 @@ class _RepositoryDetailPageState extends State<RepositoryDetailPage> {
216217
_getBranchList();
217218
}
218219

220+
_showTabToast() {
221+
Fluttertoast.showToast(msg: "目前手动点击会有问题,请用滑动");
222+
}
223+
219224
@override
220225
Widget build(BuildContext context) {
221226
return new GSYTabBarWidget(
222227
type: GSYTabBarWidget.TOP_TAB,
223228
tarWidgetControl: tarBarControl,
224229
tabItems: [
225-
new Tab(text: GSYStrings.repos_tab_info),
226-
new Tab(text: GSYStrings.repos_tab_readme),
227-
new Tab(text: GSYStrings.repos_tab_issue),
228-
new Tab(text: GSYStrings.repos_tab_file),
230+
new FlatButton(onPressed: (){_showTabToast();}, child: new Tab(text: GSYStrings.repos_tab_info)),
231+
new FlatButton(onPressed: (){_showTabToast();}, child: new Tab(text: GSYStrings.repos_tab_readme)),
232+
new FlatButton(onPressed: (){_showTabToast();}, child: new Tab(text: GSYStrings.repos_tab_issue)),
233+
new FlatButton(onPressed: (){_showTabToast();}, child: new Tab(text: GSYStrings.repos_tab_file)),
229234
],
230235
tabViews: [
231236
new ReposDetailInfoPage(reposDetailInfoPageControl, userName, reposName, branchControl, key: infoListKey),

0 commit comments

Comments
 (0)
X Tutup