Browse Source

1.版本更新

tags/0.0.5
“yanghuaxuan” 3 years ago
parent
commit
1a9ac70c1f
7 changed files with 15 additions and 14 deletions
  1. +2
    -2
      example/android/app/build.gradle
  2. +7
    -1
      example/lib/main.dart
  3. +1
    -1
      example/pubspec.yaml
  4. +3
    -0
      lib/pages/feedback_page/bloc/feedback_record_repository.dart
  5. +0
    -8
      lib/widgets/home/home_goods/bloc/home_goods_bloc.dart
  6. +1
    -1
      lib/widgets/share/share_alert.dart
  7. +1
    -1
      pubspec.yaml

+ 2
- 2
example/android/app/build.gradle View File

@@ -112,9 +112,9 @@ android {
// 智夜生活
zhiying {
applicationId "cn.zhios.zhiying"
versionCode 38
versionCode 39
dimension "app"
versionName '1.2.38'
versionName '1.2.39'
// 签名信息
signingConfig signingConfigs.zhiying
}


+ 7
- 1
example/lib/main.dart View File

@@ -35,10 +35,16 @@ class MyApp extends StatefulWidget {
}

class _MyAppState extends State<MyApp> {

Widget getErrorWidget(BuildContext context, FlutterErrorDetails error) {
var erroStr='';
const bool inProduction = const bool.fromEnvironment("dart.vm.product");
if ( !inProduction) {
erroStr=error.exceptionAsString();
}
return Center(
child: Text(
"走神了~\n${error.exceptionAsString()}",
"走神了~"+erroStr,
style: Theme
.of(context)
.textTheme


+ 1
- 1
example/pubspec.yaml View File

@@ -38,7 +38,7 @@ dev_dependencies:
zhiying_moments:
#path: ../zhiying_moments
git:
ref: 0.0.5
ref: 0.1.0
url: http://192.168.0.138:3000/FnuoOS_ZhiYing/zhiying_moments.git

# For information on the generic Dart part of this file, see the


+ 3
- 0
lib/pages/feedback_page/bloc/feedback_record_repository.dart View File

@@ -97,6 +97,9 @@ class FeedbackRecordRepository {

/// 基础加载方法
Future<dynamic> _fetchBaseRequest() async {
if(_currentPage==1){
_dataModel.data.clear();
}
try {
var result = await NetUtil.post('/api/v1/feedback/list', method: NetMethod.GET, queryParameters: {'page': _currentPage.toString()});
if (NetUtil.isSuccess(result) && !EmptyUtil.isEmpty(result[GlobalConfig.HTTP_RESPONSE_KEY_DATA])) {


+ 0
- 8
lib/widgets/home/home_goods/bloc/home_goods_bloc.dart View File

@@ -24,17 +24,9 @@ class HomeGoodsBloc extends BlocBase implements CategoryGoodsOnClickCallBack {
_goodsController = null;
}

bool loading=false;

void loadMore(dynamic provider) {
///避免多次下拉刷新出现跳页加载的情况
if(loading){
return ;
}
loading=true;
Timer(Duration(milliseconds: 2000), (){
loading=false;
});
if (provider != _provider) {
page = 1;
}


+ 1
- 1
lib/widgets/share/share_alert.dart View File

@@ -293,7 +293,7 @@ class _ShareAlertContentState extends State<_ShareAlertContent> {
if (state == SSDKResponseState.Fail) {
Fluttertoast.showToast(msg: '分享失败');
} else if (state == SSDKResponseState.Success) {
Fluttertoast.showToast(msg: '分享成功');
//Fluttertoast.showToast(msg: '分享成功');
} else if (state == SSDKResponseState.Cancel) {
Fluttertoast.showToast(msg: '取消分享');
}


+ 1
- 1
pubspec.yaml View File

@@ -15,7 +15,7 @@ dependencies:
bloc: ^4.0.0
event_bus: ^1.1.1
pull_to_refresh: ^1.6.1
flutter_cupertino_date_picker: ^1.0.26+2
flutter_cupertino_date_picker:
image_picker: ^0.6.7+3
tab_indicator_styler: 1.0.0
connectivity: ^0.4.9+3


Loading…
Cancel
Save