📌  相关文章
📜  RaisedButton' 已弃用,不应使用. - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:09.448000             🧑  作者: Mango

代码示例1
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