Skip to content

Commit

Permalink
趋势页面优化处理
Browse files Browse the repository at this point in the history
  • Loading branch information
CarGuo committed Aug 28, 2018
1 parent abc74a6 commit 3e923b0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/page/TrendPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter_redux/flutter_redux.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:gsy_github_app_flutter/common/dao/ReposDao.dart';
import 'package:gsy_github_app_flutter/common/redux/GSYState.dart';
import 'package:gsy_github_app_flutter/common/style/GSYStyle.dart';
Expand Down Expand Up @@ -50,13 +51,21 @@ class _TrendPageState extends GSYListState<TrendPage> {
child: new Row(
children: <Widget>[
_renderHeaderPopItem(selectTime.name, trendTime(context), (TrendTypeModel result) {
if(isLoading) {
Fluttertoast.showToast(msg: CommonUtils.getLocale(context).loading_text);
return;
}
setState(() {
selectTime = result;
});
showRefreshLoading();
}),
new Container(height: 10.0, width: 0.5, color: Color(GSYColors.white)),
_renderHeaderPopItem(selectType.name, trendType(context), (TrendTypeModel result) {
if(isLoading) {
Fluttertoast.showToast(msg: CommonUtils.getLocale(context).loading_text);
return;
}
setState(() {
selectType = result;
});
Expand Down

0 comments on commit 3e923b0

Please sign in to comment.