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

Error: This expression has type 'void' and can't be used. #26

Open
3ph opened this issue Jan 30, 2020 · 3 comments
Open

Error: This expression has type 'void' and can't be used. #26

3ph opened this issue Jan 30, 2020 · 3 comments

Comments

@3ph
Copy link

3ph commented Jan 30, 2020

   Compiler message:
    ../../../flutter/.pub-cache/hosted/pub.dartlang.org/sailor-0.6.0/lib/src/sailor.dart:429:43: Error: This expression has type 'void' and can't be used.
        return this.navigatorKey.currentState.pop(result);
                                              ^

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.14.7-pre.52, on Mac OS X 10.14.6 18G2022, locale en-AU)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.41.1)
[✓] Connected device (2 available)

• No issues found!
@yvanvds
Copy link

yvanvds commented Feb 2, 2020

I can confirm this happens in the flutter master channel. It is not a problem in the stable channel right now.

@iamEtornam
Copy link

I am facing the same issue. Is there a fix?

@egarson
Copy link

egarson commented Feb 10, 2020

Hi,
This can be resolved by removing the return statement in the pop function (in sailor.dart) of whatever version of sailor you are using (0.6.0 is line 429 fwiw).
@CasperPas thanks for doing the pull request (I just saw and updated this comment).
Cheers

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

4 participants