File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import 'dart:async';
22
33import 'package:flutter/material.dart' ;
44import 'package:flutter_redux/flutter_redux.dart' ;
5+ import 'package:fluttertoast/fluttertoast.dart' ;
56import 'package:gsy_github_app_flutter/common/dao/ReposDao.dart' ;
67import 'package:gsy_github_app_flutter/common/redux/GSYState.dart' ;
78import 'package:gsy_github_app_flutter/common/style/GSYStyle.dart' ;
@@ -50,13 +51,21 @@ class _TrendPageState extends GSYListState<TrendPage> {
5051 child: new Row (
5152 children: < Widget > [
5253 _renderHeaderPopItem (selectTime.name, trendTime (context), (TrendTypeModel result) {
54+ if (isLoading) {
55+ Fluttertoast .showToast (msg: CommonUtils .getLocale (context).loading_text);
56+ return ;
57+ }
5358 setState (() {
5459 selectTime = result;
5560 });
5661 showRefreshLoading ();
5762 }),
5863 new Container (height: 10.0 , width: 0.5 , color: Color (GSYColors .white)),
5964 _renderHeaderPopItem (selectType.name, trendType (context), (TrendTypeModel result) {
65+ if (isLoading) {
66+ Fluttertoast .showToast (msg: CommonUtils .getLocale (context).loading_text);
67+ return ;
68+ }
6069 setState (() {
6170 selectType = result;
6271 });
You can’t perform that action at this time.
0 commit comments