Skip to content

Commit

Permalink
v0.1.5+1
Browse files Browse the repository at this point in the history
  • Loading branch information
thl committed Mar 19, 2019
1 parent 5021ecf commit 48e7d63
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 27
compileSdkVersion 28

lintOptions {
disable 'InvalidPackage'
Expand All @@ -35,7 +35,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.thl.flutterwanandroid"
minSdkVersion 16
targetSdkVersion 27
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.android.tools.build:gradle:3.2.1'
}
}

Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
6 changes: 3 additions & 3 deletions lib/blocs/com_list_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class ComListBloc implements BlocBase {
_comListEventSink.add(new StatusEvent(labelId,
ObjectUtil.isEmpty(list) ? RefreshStatus.noMore : RefreshStatus.idle,
cid: cid));
}).catchError(() {
}).catchError((_) {
_comListPage--;
_comListEventSink.add(new StatusEvent(labelId, RefreshStatus.failed));
});
Expand All @@ -98,7 +98,7 @@ class ComListBloc implements BlocBase {
_comListEventSink.add(new StatusEvent(labelId,
ObjectUtil.isEmpty(list) ? RefreshStatus.noMore : RefreshStatus.idle,
cid: cid));
}).catchError(() {
}).catchError((_) {
_comListPage--;
_comListEventSink.add(new StatusEvent(labelId, RefreshStatus.failed));
});
Expand All @@ -118,7 +118,7 @@ class ComListBloc implements BlocBase {
_comListEventSink.add(new StatusEvent(labelId,
ObjectUtil.isEmpty(list) ? RefreshStatus.noMore : RefreshStatus.idle,
cid: cid));
}).catchError(() {
}).catchError((_) {
_comListPage--;
_comListEventSink.add(new StatusEvent(labelId, RefreshStatus.failed));
});
Expand Down
8 changes: 4 additions & 4 deletions lib/blocs/main_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ class MainBloc implements BlocBase {
ObjectUtil.isEmpty(list)
? RefreshStatus.noMore
: RefreshStatus.idle));
}).catchError(() {
}).catchError((_) {
_reposPage--;
_homeEventSink.add(new StatusEvent(labelId, RefreshStatus.failed));
});
Expand All @@ -257,7 +257,7 @@ class MainBloc implements BlocBase {
ObjectUtil.isEmpty(list)
? RefreshStatus.noMore
: RefreshStatus.idle));
}).catchError(() {
}).catchError((_) {
_eventsPage--;
_homeEventSink.add(new StatusEvent(labelId, RefreshStatus.failed));
});
Expand Down Expand Up @@ -287,7 +287,7 @@ class MainBloc implements BlocBase {
ObjectUtil.isEmpty(list)
? RefreshStatus.noMore
: RefreshStatus.idle));
}).catchError(() {
}).catchError((_) {
_homeEventSink.add(new StatusEvent(labelId, RefreshStatus.failed));
});
}
Expand Down Expand Up @@ -315,7 +315,7 @@ class MainBloc implements BlocBase {
ObjectUtil.isEmpty(list)
? RefreshStatus.noMore
: RefreshStatus.idle));
}).catchError(() {
}).catchError((_) {
_homeEventSink.add(new StatusEvent(labelId, RefreshStatus.failed));
});
}
Expand Down
2 changes: 1 addition & 1 deletion lib/blocs/tab_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class TabBloc implements BlocBase {
// ObjectUtil.isEmpty(list)
// ? RefreshStatus.noMore
// : RefreshStatus.idle));
}).catchError(() {
}).catchError((_) {
// _homeEventSink.add(new StatusEvent(labelId, RefreshStatus.failed));
});
}
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class HomePage extends StatelessWidget {
child: new CachedNetworkImage(
fit: BoxFit.fill,
imageUrl: model.imagePath,
placeholder: new ProgressView(),
errorWidget: new Icon(Icons.error),
placeholder: (context, url) => new ProgressView(),
errorWidget: (context, url, error) => new Icon(Icons.error),
),
);
}).toList(),
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/pages/rec_hot_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class RecHotPage extends StatelessWidget {
height: 128,
fit: BoxFit.fill,
imageUrl: imgUrl,
placeholder: new ProgressView(),
errorWidget: new Icon(Icons.error),
placeholder: (context, url) => new ProgressView(),
errorWidget: (context, url, error) => new Icon(Icons.error),
),
);
}
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/pages/splash_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ class SplashPageState extends State<SplashPage> {
height: double.infinity,
fit: BoxFit.fill,
imageUrl: _splashModel.imgUrl,
placeholder: _buildSplashBg(),
errorWidget: _buildSplashBg(),
placeholder: (context, url) => _buildSplashBg(),
errorWidget: (context, url, error) => _buildSplashBg(),
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/widgets/refresh_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class RefreshScaffoldState extends State<RefreshScaffold>
@override
Widget build(BuildContext context) {
// LogUtil.e("RefreshScaffold build...... " + widget.labelId);

super.build(context);
return new Scaffold(
body: new Stack(
children: <Widget>[
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/widgets/repos_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ class ReposItem extends StatelessWidget {
height: 128,
fit: BoxFit.fill,
imageUrl: model.envelopePic,
placeholder: new ProgressView(),
errorWidget: new Icon(Icons.error),
placeholder: (context, url) => new ProgressView(),
errorWidget: (context, url, error) => new Icon(Icons.error),
),
)
],
Expand Down
18 changes: 9 additions & 9 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ description: Flutter Wanandroid App.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# Read more about versioning at semver.org.
version: 0.1.5
version: 0.1.5+1

environment:
sdk: ">=1.19.0 <3.0.0"
sdk: ">=2.1.0 <3.0.0"

dependencies:
flutter:
Expand All @@ -24,9 +24,9 @@ dependencies:
# 汉字转拼音库 https://github.com/flutterchina/lpinyin
lpinyin: ^1.0.7
# Dart 常用工具类库 https://github.com/Sky24n/common_utils
common_utils: ^1.0.9
common_utils: ^1.1.1
# Flutter 常用工具类库 https://github.com/Sky24n/flustars
flustars: ^0.2.4
flustars: ^0.2.5
# Flutter 国际化/多语言库 https://github.com/Sky24n/fluintl
fluintl: ^0.1.2
# Flutter 城市列表 https://github.com/flutterchina/azlistview
Expand All @@ -36,17 +36,17 @@ dependencies:
# https://github.com/flutterchina/dio
dio: ^1.0.13
# rxdart https://github.com/ReactiveX/rxdart
rxdart: ^0.18.1
rxdart: ^0.21.0
# https://github.com/renefloor/flutter_cached_network_image
cached_network_image: ^0.5.0
cached_network_image: ^0.7.0
# https://github.com/flutter/plugins/tree/master/packages/url_launcher
url_launcher: ^4.0.1
url_launcher: ^5.0.2
# https://github.com/peng8350/flutter_pulltorefresh
pull_to_refresh: ^1.1.6
# device_info
device_info: ^0.3.0
device_info: ^0.4.0+1
# webview_flutter
webview_flutter: ^0.3.3+1
webview_flutter: ^0.3.4
# https://github.com/flutterchina/flukit.
flukit: ^1.0.0

Expand Down

0 comments on commit 48e7d63

Please sign in to comment.