The solution is adding onPressed() property to RaisedButton. Because, if onPressed() property is not provided, even with the empty function, RaisedButton is considered as disabled .
Read moreWhat can I use instead of flat button in flutter?
The FlatButton , RaisedButton and OutlineButton widgets have been replaced by TextButton , ElevatedButton , and OutlinedButton respectively.
Read moreHow do you reduce the size of a flat button in flutter?
“flutter flat button size reduce” Code Answer
Read moreHow do you color text a button in Flutter?
To change the Text Button color in Flutter, simply add the style parameter inside the Text Button and assign the TextButton. styleFrom() with the primary property set to any color of your choice .
Read moreWhat can we use instead of flat button in Flutter?
FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
Read moreWhat is a flat button in Flutter?
FlatButton is the material design widget in flutter . It is a text label material widget that performs an action when the button is tapped.30 Nis 2021
Read moreHow do you put a border on Textbutton in Flutter?
“flutter border around textbutton” Code Answer
Read more