Add example in FlatButton, RaisedButton, etc that shows setting the text of the button #12382
Labels
d: api docs
Issues with https://api.flutter.dev/
f: material design
flutter/packages/flutter/material repository.
framework
flutter/packages/flutter repository. See also f: labels.
Projects
I checked the FlatButton and I couldn't find the simple of example of "a button with text". There isn't an obvious "declare the text of the button here". I assume it's the child widget?
https://docs.flutter.io/flutter/material/FlatButton-class.html
It would be sufficient, IMO, to show a simple example snippet in the top of the docs.
The text was updated successfully, but these errors were encountered: