Updated obsolte button references in Scaffold, IconButton (#61578)
This commit is contained in:
@@ -124,7 +124,7 @@ const double _kMinButtonSize = kMinInteractiveDimension;
|
||||
/// current platform's conventions.
|
||||
/// * [CloseButton], an icon button for closing pages.
|
||||
/// * [AppBar], to show a toolbar at the top of an application.
|
||||
/// * [RaisedButton] and [FlatButton], for buttons with text in them.
|
||||
/// * [TextButton], [ElevatedButton], [OutlinedButton], for buttons with text labels and an optional icon.
|
||||
/// * [InkResponse] and [InkWell], for the ink splash effect itself.
|
||||
class IconButton extends StatelessWidget {
|
||||
/// Creates an icon button.
|
||||
|
||||
@@ -1681,7 +1681,7 @@ class ScaffoldState extends State<Scaffold> with TickerProviderStateMixin {
|
||||
///
|
||||
/// ```dart
|
||||
/// Widget build(BuildContext context) {
|
||||
/// return OutlineButton(
|
||||
/// return OutlinedButton(
|
||||
/// onPressed: () {
|
||||
/// Scaffold.of(context).showSnackBar(
|
||||
/// SnackBar(
|
||||
|
||||
Reference in New Issue
Block a user