Upgrade to latest (#1262)

pull/1258/head
Filip Hracek 3 years ago committed by GitHub
parent 91f20c9128
commit 4e19545963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -34,7 +34,7 @@ class BannerAdWidget extends StatefulWidget {
const BannerAdWidget({Key? key}) : super(key: key); const BannerAdWidget({Key? key}) : super(key: key);
@override @override
_BannerAdWidgetState createState() => _BannerAdWidgetState(); State<BannerAdWidget> createState() => _BannerAdWidgetState();
} }
class _BannerAdWidgetState extends State<BannerAdWidget> { class _BannerAdWidgetState extends State<BannerAdWidget> {
@ -111,6 +111,8 @@ class _BannerAdWidgetState extends State<BannerAdWidget> {
_adLoadingState = _LoadingState.disposing; _adLoadingState = _LoadingState.disposing;
await _bannerAd?.dispose(); await _bannerAd?.dispose();
_log.fine('_bannerAd disposed'); _log.fine('_bannerAd disposed');
if (!mounted) return;
setState(() { setState(() {
_bannerAd = null; _bannerAd = null;
_adLoadingState = _LoadingState.loading; _adLoadingState = _LoadingState.loading;
@ -133,6 +135,8 @@ class _BannerAdWidgetState extends State<BannerAdWidget> {
size = AdSize.mediumRectangle; size = AdSize.mediumRectangle;
} }
if (!mounted) return;
assert(Platform.isAndroid || Platform.isIOS, assert(Platform.isAndroid || Platform.isIOS,
'AdMob currently does not support ${Platform.operatingSystem}'); 'AdMob currently does not support ${Platform.operatingSystem}');
_bannerAd = BannerAd( _bannerAd = BannerAd(

@ -12,7 +12,7 @@ class AppLifecycleObserver extends StatefulWidget {
const AppLifecycleObserver({required this.child, Key? key}) : super(key: key); const AppLifecycleObserver({required this.child, Key? key}) : super(key: key);
@override @override
_AppLifecycleObserverState createState() => _AppLifecycleObserverState(); State<AppLifecycleObserver> createState() => _AppLifecycleObserverState();
} }
class _AppLifecycleObserverState extends State<AppLifecycleObserver> class _AppLifecycleObserverState extends State<AppLifecycleObserver>

@ -28,7 +28,7 @@ packages:
name: args name: args
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.3.0" version: "2.3.1"
async: async:
dependency: transitive dependency: transitive
description: description:
@ -91,7 +91,7 @@ packages:
name: coverage name: coverage
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.2.0" version: "1.3.0"
crypto: crypto:
dependency: transitive dependency: transitive
description: description:
@ -180,7 +180,7 @@ packages:
name: flutter_lints name: flutter_lints
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.4" version: "2.0.1"
flutter_test: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter
@ -267,14 +267,14 @@ packages:
name: in_app_purchase name: in_app_purchase
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "3.0.2" version: "3.0.4"
in_app_purchase_android: in_app_purchase_android:
dependency: transitive dependency: transitive
description: description:
name: in_app_purchase_android name: in_app_purchase_android
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.2.2+2" version: "0.2.2+5"
in_app_purchase_platform_interface: in_app_purchase_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -288,7 +288,7 @@ packages:
name: in_app_purchase_storekit name: in_app_purchase_storekit
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.3.0+4" version: "0.3.0+7"
io: io:
dependency: transitive dependency: transitive
description: description:
@ -316,7 +316,7 @@ packages:
name: lints name: lints
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.1" version: "2.0.0"
logging: logging:
dependency: "direct main" dependency: "direct main"
description: description:
@ -386,49 +386,49 @@ packages:
name: path_provider name: path_provider
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.9" version: "2.0.10"
path_provider_android: path_provider_android:
dependency: transitive dependency: transitive
description: description:
name: path_provider_android name: path_provider_android
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.13" version: "2.0.14"
path_provider_ios: path_provider_ios:
dependency: transitive dependency: transitive
description: description:
name: path_provider_ios name: path_provider_ios
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.8" version: "2.0.9"
path_provider_linux: path_provider_linux:
dependency: transitive dependency: transitive
description: description:
name: path_provider_linux name: path_provider_linux
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.5" version: "2.1.6"
path_provider_macos: path_provider_macos:
dependency: transitive dependency: transitive
description: description:
name: path_provider_macos name: path_provider_macos
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.5" version: "2.0.6"
path_provider_platform_interface: path_provider_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: path_provider_platform_interface name: path_provider_platform_interface
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.3" version: "2.0.4"
path_provider_windows: path_provider_windows:
dependency: transitive dependency: transitive
description: description:
name: path_provider_windows name: path_provider_windows
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.5" version: "2.0.6"
petitparser: petitparser:
dependency: transitive dependency: transitive
description: description:
@ -484,35 +484,35 @@ packages:
name: shared_preferences name: shared_preferences
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.13" version: "2.0.15"
shared_preferences_android: shared_preferences_android:
dependency: transitive dependency: transitive
description: description:
name: shared_preferences_android name: shared_preferences_android
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.11" version: "2.0.12"
shared_preferences_ios: shared_preferences_ios:
dependency: transitive dependency: transitive
description: description:
name: shared_preferences_ios name: shared_preferences_ios
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.0" version: "2.1.1"
shared_preferences_linux: shared_preferences_linux:
dependency: transitive dependency: transitive
description: description:
name: shared_preferences_linux name: shared_preferences_linux
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.0" version: "2.1.1"
shared_preferences_macos: shared_preferences_macos:
dependency: transitive dependency: transitive
description: description:
name: shared_preferences_macos name: shared_preferences_macos
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.3" version: "2.0.4"
shared_preferences_platform_interface: shared_preferences_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -526,14 +526,14 @@ packages:
name: shared_preferences_web name: shared_preferences_web
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.3" version: "2.0.4"
shared_preferences_windows: shared_preferences_windows:
dependency: transitive dependency: transitive
description: description:
name: shared_preferences_windows name: shared_preferences_windows
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.0" version: "2.1.1"
shelf: shelf:
dependency: transitive dependency: transitive
description: description:
@ -664,7 +664,7 @@ packages:
name: vm_service name: vm_service
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "8.2.2" version: "8.3.0"
watcher: watcher:
dependency: transitive dependency: transitive
description: description:
@ -715,5 +715,5 @@ packages:
source: hosted source: hosted
version: "3.1.0" version: "3.1.0"
sdks: sdks:
dart: ">=2.17.0-0 <3.0.0" dart: ">=2.17.0-206.0.dev <3.0.0"
flutter: ">=2.8.1" flutter: ">=2.8.1"

@ -34,7 +34,7 @@ dev_dependencies:
sdk: flutter sdk: flutter
flutter_launcher_icons: ^0.9.2 flutter_launcher_icons: ^0.9.2
flutter_lints: ^1.0.0 flutter_lints: ^2.0.1
test: ^1.19.0 test: ^1.19.0
flutter: flutter:

Loading…
Cancel
Save