|
1 | 1 | import 'package:flutter/material.dart'; |
| 2 | +import 'package:fluttertoast/fluttertoast.dart'; |
2 | 3 | import 'package:gsy_github_app_flutter/common/config/Config.dart'; |
3 | 4 | import 'package:gsy_github_app_flutter/common/dao/ReposDao.dart'; |
4 | 5 | import 'package:gsy_github_app_flutter/common/style/GSYStyle.dart'; |
@@ -216,16 +217,20 @@ class _RepositoryDetailPageState extends State<RepositoryDetailPage> { |
216 | 217 | _getBranchList(); |
217 | 218 | } |
218 | 219 |
|
| 220 | + _showTabToast() { |
| 221 | + Fluttertoast.showToast(msg: "目前手动点击会有问题,请用滑动"); |
| 222 | + } |
| 223 | + |
219 | 224 | @override |
220 | 225 | Widget build(BuildContext context) { |
221 | 226 | return new GSYTabBarWidget( |
222 | 227 | type: GSYTabBarWidget.TOP_TAB, |
223 | 228 | tarWidgetControl: tarBarControl, |
224 | 229 | 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)), |
229 | 234 | ], |
230 | 235 | tabViews: [ |
231 | 236 | new ReposDetailInfoPage(reposDetailInfoPageControl, userName, reposName, branchControl, key: infoListKey), |
|
0 commit comments