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

final ScaffoldState scaffold = Scaffold.maybeOf(context); #202

Open
coredeveloper opened this issue Feb 6, 2021 · 11 comments
Open

final ScaffoldState scaffold = Scaffold.maybeOf(context); #202

coredeveloper opened this issue Feb 6, 2021 · 11 comments

Comments

@coredeveloper
Copy link

This line was fixed and still for some reason it's still in master and still causing the issue.

../../../../../.pub-cache/hosted/pub.dartlang.org/flutter_neumorphic-3.0.4+1/lib/src/widget/app_bar.dart:147:45: Error: Method not found: 'Scaffold.maybeOf'.
        final ScaffoldState scaffold = Scaffold.maybeOf(context);
                                                ^^^^^^^
    Command PhaseScriptExecution failed with a nonzero exit code

He's the code which fixes it:
4710c9e

@hzlgnn
Copy link

hzlgnn commented Feb 6, 2021

same issue.

@coredeveloper
Copy link
Author

PR #203 contains the fix

@AD-Paladins
Copy link

AD-Paladins commented Feb 7, 2021

Problem solved changing again the line to:

final ScaffoldState scaffold = Scaffold.of(context);

File: /lib/src/widget/app_bar.dart - Line 147

SDK::
Flutter 1.22.5
Framework • revision 7891006299 (8 weeks ago) • 2020-12-10 11:54:40 -0800
Engine • revision ae90085a84
Tools • Dart 2.10.4

Project:

environment:
sdk: ">=2.7.0 <3.0.0"

pubspec.yaml

@Bohirjon
Copy link

Bohirjon commented Feb 8, 2021

Hi @titopalito thanks for workaround. after this change google fonts stoped working. have u faced this ?

@taruncseengineer
Copy link

same issue here please anyone help me.

@Liliana99
Copy link

Same issue

@robertoltrocha
Copy link

Hi,
same issue here please anyone fix it.

@chodex-xyz
Copy link
Contributor

@florent37 we need you 🤒

@cloudbreakstudios
Copy link

Anyone forked this with a fix? Would love to give this a try

@chodex-xyz
Copy link
Contributor

fixed #209

@Mudassir-Hasan
Copy link

same issue

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

10 participants