buttonColor: Theme.of(context).accentColor, buttonTheme: ButtonThemeData( textTheme: ButtonTextTheme.primary, // shape: BeveledRectangleBorder(borderRadius: BorderRadius.circular(5.0)), shape: StadiumBorder(), )), child: OutlineButton( onPressed: () {}, child: Text("OutlineButton"), splashColo...
在Flutter 2.0中,RaisedButton小部件已被弃用,已被ElevatedButton小部件取代。ElevatedButton的一个用法...
I love the ElevatedButton() and all, I mean, it's great!... if you want something fancy!! But sometimes you just want a simple button, which is a bit raised, and perhaps you want to change the color and the text color of it, and that's it. Now, with the RaisedButton() this...