i am using gradient for my custom button when i want to pass gradient color to it, it shows error that says
The named parameter 'colors' isn't defined.
how can i fix it?
The named parameter 'color' isn't defined. Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'color'. The named parameter 'color' isn't defined. Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'color'.
[dart] The named parameter 'name' isn't defined. · Issue #116 · flutter/udacity-course · GitHub Sign up for free to subscribe to this conversation on GitHub . Already have an account? Sign in .
The named parameter 'colors' isn't defined. how can i fix it? Show activity on this post. Try to restart the Analysis Dart Server. Ctrl + Shift + P on Windows, Cmd + Shift + P on Macos opens the command palette if you use VS Code. Then run Dart: Restart Analysis Server.
Ctrl + Shift + P on Windows, Cmd + Shift + P on Macos opens the command palette if you use VS Code. Then run Dart: Restart Analysis Server. Show activity on this post. Clean your project by pressing flutter clean command. Close the IDE and restart it. And this issue will be solved Show activity on this post. You can try restarting the IDE.
Try to restart the Analysis Dart Server.
Ctrl + Shift + P on Windows, Cmd + Shift + P on Macos opens the command palette if you use VS Code.
Then run Dart: Restart Analysis Server.
Clean your project by pressing flutter clean command.
Close the IDE and restart it. And this issue will be solved
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With