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

Getting this error on ios build ? #92

Open
BAssured opened this issue May 16, 2023 · 0 comments
Open

Getting this error on ios build ? #92

BAssured opened this issue May 16, 2023 · 0 comments
Labels
possible-bug Possible bug

Comments

@BAssured
Copy link

flutter_clean_architecture-5.0.4/lib/src/view.dart:142:29: Error: Method 'addObserver' cannot be called on 'WidgetsBinding?' because it is potentially null.

'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../../Desktop/projects/flutter/packages/flutter/lib/src/widgets/binding.dart').
Try calling using ?. instead.
WidgetsBinding.instance.addObserver(_controller);
^^^^^^^^^^^
Failed to package com.example.app.
Command PhaseScriptExecution failed with a nonzero exit code

@BAssured BAssured added the possible-bug Possible bug label May 16, 2023
@ShadyBoukhary ShadyBoukhary mentioned this issue Jul 3, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible-bug Possible bug
Projects
None yet
Development

No branches or pull requests

1 participant