Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flutter 3.0 changes #78

Closed
zawadZwd opened this issue May 12, 2022 · 5 comments
Closed

Flutter 3.0 changes #78

zawadZwd opened this issue May 12, 2022 · 5 comments

Comments

@zawadZwd
Copy link

Hello
After releasing new flutter version, the plugin do not work because of this error:

.pub-cache/hosted/pub.dartlang.org/flutter_foreground_task-3.7.2/lib/ui/will_start_foreground_task.dart:95:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../Flutter/packages/flutter/lib/src/widgets/binding.dart').
 WidgetsBinding.instance?.addObserver(this);
@zawadZwd
Copy link
Author

Also there is a warning which I believe there wasn't before:

.pub-cache/hosted/pub.dartlang.org/flutter_foreground_task-3.7.2/android/src/main/kotlin/com/pravera/flutter_foreground_task/service/ForegroundService.kt: (329, 18): Object is not abstract and does not implement abstract member public abstract fun error(p0: String, p1: String?, p2: Any?): Unit defined in io.flutter.plugin.common.MethodChannel.Result
.pub-cache/hosted/pub.dartlang.org/flutter_foreground_task-3.7.2/android/src/main/kotlin/com/pravera/flutter_foreground_task/service/ForegroundService.kt: (347, 4): 'error' overrides nothing

@zawadZwd
Copy link
Author

flutter/flutter#103561

@blopker
Copy link

blopker commented May 12, 2022

I can confirm our builds are failing on Flutter 3 because of this. Anything we can do to help?

@Dev-hwang
Copy link
Owner

Try upgrading to version 3.7.3

dependencies:
  flutter_foreground_task: ^3.7.3

@blopker
Copy link

blopker commented May 13, 2022

Works for us! Thanks for the quick turnaround. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants