sososdk / flash

⚡️A highly customizable, powerful and easy-to-use alerting library for Flutter.

Home Page:https://sososdk.github.io/flash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: No named parameter with the name 'foregroundColor'

krishna700 opened this issue · comments

[+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.**

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

yes it works.

Thanks @sososdk