I created an application in flutter where I put Raisedbutton's everywhere. I want to change them all in Neumorphicbutton. Is there a way to change all Raisedbutton's into NeummorphicButton without editing one by one? Thank you.
Asked
Active
Viewed 292 times
2 Answers
1
You can use refactor tool to change all occurrence of Raisedbutton to Neumorphicbutton. If u want to change all of them at once

Maqcel
- 493
- 5
- 16
-
Thank you @MerMonkey But inside of refractor tool I have many other choices. Wichone should I chose. Also I am using AndroidStudio – Miles Nov 10 '20 at 11:59
-
I can rename (refractor) an Widget or a Class name but not a RaisedButton. – Miles Nov 10 '20 at 12:06
-
When I rename the RaisedButton it says "The class 'raisedButton' is defined outside of the project, so cannot be renamed." – Miles Nov 10 '20 at 12:10
-
https://stackoverflow.com/questions/20249274/find-and-replace-android-studio I think this can help you – Maqcel Nov 10 '20 at 12:30
-
It is not about refactoring the raisedButton itself all you need to do is change all occurrence. You can do it even in ms word if u see fit :') – Maqcel Nov 10 '20 at 12:34
-
And can I ask another question? – Miles Nov 10 '20 at 12:37
-
Yeah, ask away. – Maqcel Nov 10 '20 at 12:37
-
In AndroidStudio (on mac) how can I see the functionality of for example of a raisedButton? (like the text etc...) – Miles Nov 10 '20 at 12:39
-
I use vsc myself so I don't really know how to turn it on in AndroidStudio. Try to search in plugins for code snipsets or sth. In vsc I just need to press ctrl + . – Maqcel Nov 10 '20 at 12:58
0
Assuming that you want all the buttons to change into a neumorphic button style by clicking a single button , you can use the Onpressed()
function and have it call SetState
, in which you can change each and every button to Neumorphic style

Recondit
- 114
- 9