Answers for "why was raisedbutton deprecated"

1

RaisedButton' is deprecated and shouldn't be used.

FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton,
ElevatedButton, and OutlinedButton respectively. 

ButtonTheme has been replaced by TextButtonTheme, ElevatedButtonTheme, and
OutlinedButtonTheme. The original classes will be deprecated soon, please 
migrate code that uses them. There's a detailed migration guide for the new 
button and button theme classes in flutter.

dev/go/material-button-migration-guide.

refrence: 
https://api.flutter.dev/flutter/material/RaisedButton-class.html
Posted by: Guest on February-14-2021
1

raised button deprecated flutter

Flutter new version replaces following widgets with:

Old Widget	   | Old Theme	   | New Widget	    | New Theme
______________________________________________________________________
FlatButton	   | ButtonTheme   | TextButton	    | TextButtonTheme
RaisedButton   | ButtonTheme   | ElevatedButton | ElevatedButtonTheme
OutlineButton  | ButtonTheme   | OutlinedButton | OutlinedButtonTheme
Posted by: Guest on October-20-2021

Code answers related to "why was raisedbutton deprecated"

Browse Popular Code Answers by Language