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 issues while app is build on ios ? #91

Open
Kedar-jirel opened this issue Apr 7, 2023 · 0 comments
Open

Getting this issues while app is build on ios ? #91

Kedar-jirel opened this issue Apr 7, 2023 · 0 comments
Labels
possible-bug Possible bug

Comments

@Kedar-jirel
Copy link

Kedar-jirel commented Apr 7, 2023

Describe the bug
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
@Kedar-jirel Kedar-jirel added the possible-bug Possible bug label Apr 7, 2023
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