Skip to content

Commit

Permalink
upgrade lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Notsfsssf committed Jan 23, 2021
1 parent db59b75 commit d3f8478
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 1,220 deletions.
1 change: 0 additions & 1 deletion lib/network/compute_interceptor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
import 'package:dio/dio.dart';
import 'package:flutter/foundation.dart';

class ComputeInterceptor extends Interceptor {
@override
Expand Down
11 changes: 1 addition & 10 deletions lib/page/about/iap_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'dart:core';

import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_inapp_purchase/flutter_inapp_purchase.dart';
import 'package:mobx/mobx.dart';
import 'package:pixez/er/lprinter.dart';
Expand All @@ -17,7 +16,7 @@ abstract class _IAPStoreBase with Store {

dispose() {
_purchaseErrorSubscription?.cancel();
_purchaseErrorSubscription?.cancel();
_purchaseUpdatedSubscription?.cancel();
}

StreamSubscription _purchaseUpdatedSubscription;
Expand All @@ -26,8 +25,6 @@ abstract class _IAPStoreBase with Store {
Future<void> initPlatformState() async {
var result = await FlutterInappPurchase.instance.initConnection;
print('result: $result');
List<IAPItem> iaps =
await FlutterInappPurchase.instance.getProducts(_productLists);
try {
List<IAPItem> msg = await FlutterInappPurchase.instance
.getProducts(['support', 'support1']);
Expand All @@ -53,12 +50,6 @@ abstract class _IAPStoreBase with Store {

@action
Future<void> initAndroidIap() async {
String platformVersion;
try {
platformVersion = await FlutterInappPurchase.instance.platformVersion;
} on PlatformException {
platformVersion = 'Failed to get platform version.';
}
var result = await FlutterInappPurchase.instance.initConnection;
print('result: $result');
try {
Expand Down
5 changes: 2 additions & 3 deletions lib/page/hello/android_hello_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ class _AndroidHelloPageState extends State<AndroidHelloPage> {
try {
Uri initialLink = await getInitialUri();
if (initialLink != null) Leader.pushWithUri(context, initialLink);
_sub = getUriLinksStream().listen((Uri link) {
Leader.pushWithUri(context, link);
});
_sub = getUriLinksStream().listen((Uri link) => Leader.pushWithUri(context, link));
} catch (e) {
print(e);
}
Expand Down Expand Up @@ -207,6 +205,7 @@ class _AndroidHelloPageState extends State<AndroidHelloPage> {
void dispose() {
_intentDataStreamSubscription?.cancel();
_pageController?.dispose();
_sub?.cancel();
super.dispose();
}

Expand Down
2 changes: 1 addition & 1 deletion lib/page/novel/component/novel_lighting_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ abstract class _NovelLightingStoreBase with Store {
}

@action
Future<Void> next() async {
Future<void> next() async {
if (nextUrl != null && nextUrl.isNotEmpty) {
try {
Response response = await _client.getNext(nextUrl);
Expand Down
2 changes: 1 addition & 1 deletion lib/page/picture/illust_lighting_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ class _IllustLightingPageState extends State<IllustLightingPage>
});
}

Future _pressSave(Illusts illust, int index) {
Future<void> _pressSave(Illusts illust, int index) async {
showModalBottomSheet(
context: context,
shape: RoundedRectangleBorder(
Expand Down
Loading

0 comments on commit d3f8478

Please sign in to comment.