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: No named parameter with the name 'foregroundColor' #52

Closed
krishna700 opened this issue Sep 28, 2022 · 2 comments
Closed

Error: No named parameter with the name 'foregroundColor' #52

krishna700 opened this issue Sep 28, 2022 · 2 comments

Comments

@krishna700
Copy link

[+7199 ms] [+7168 ms] ../Development/flutter/.pub-cache/hosted/pub.dartlang.org/flash-2.0.5/lib/src/flash_helper.dart:337:45: Error: No named
parameter with the name 'foregroundColor'.
[ +2 ms] [ +8 ms] style: TextButton.styleFrom(foregroundColor: $actionColor),
[ ] [ ] ^^^^^^^^^^^^^^^
[ ] [ ] ../Development/flutter/packages/flutter/lib/src/material/text_button.dart:145:22: Context: Found this candidate, but the
arguments don't match.
[ ] [ ] static ButtonStyle styleFrom({
[ ] [ ] ^^^^^^^^^
[ ] [ +1 ms] ../Development/flutter/.pub-cache/hosted/pub.dartlang.org/flash-2.0.5/lib/src/flash_helper.dart:555:45: Error: No named
parameter with the name 'foregroundColor'.
[ ] [ ] style: TextButton.styleFrom(foregroundColor: $actionColor),
[ ] [ ] ^^^^^^^^^^^^^^^
[ ] [ ] ../Development/flutter/packages/flutter/lib/src/material/text_button.dart:145:22: Context: Found this candidate, but the
arguments don't match.
[ ] [ ] static ButtonStyle styleFrom({

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.5, on macOS 12.6 21G115 darwin-arm, locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.71.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

**iOS & Android not working. Not able to run or build.

Commenting out the plugin code is working. Please look into this.**

@sososdk
Copy link
Owner

sososdk commented Sep 29, 2022

Hi, ButtonStyle.foregroundColor added to flutter v3.1.0, you can update your flutter or use flash 2.0.3+3

@krishna700
Copy link
Author

yes it works.

Thanks @sososdk

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