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

While running the app i got this error #7

Open
mithun1302 opened this issue Jun 11, 2021 · 1 comment
Open

While running the app i got this error #7

mithun1302 opened this issue Jun 11, 2021 · 1 comment

Comments

@mithun1302
Copy link

/E:/flutter/.pub-cache/hosted/pub.dartlang.org/country_pickers-1.3.0/lib/utils/my_alert_dialog.dart:139:36: Error: Method not found: 'ButtonTheme.bar'.
children.add(new ButtonTheme.bar(
^^^

FAILURE: Build failed with an exception.

  • Where:
    Script 'E:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1035

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'E:\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1m 6s
Exception: Gradle task assembleDebug failed with exit code 1

@ChetanShahapurkar
Copy link

I solved it-
In your pubspec.yaml file

change the package

from

country_pickers: ^1.3.0

To

country_pickers: ^2.0.0

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

2 participants