@@ -20,22 +20,20 @@ import 'theme_data.dart';
2020/// Creates a button based on [Semantics] , [Material] , and [InkWell]
2121/// widgets.
2222///
23- /// ### This class is obsolete.
24- ///
25- /// Custom button classes can be created by configuring the
26- /// [ButtonStyle] of a [TextButton] , [ElevatedButton] or an
27- /// [OutlinedButton] .
28- ///
29- /// FlatButton has been replaced by TextButton and ButtonTheme has been
30- /// replaced by TextButtonTheme. Please migrate code that uses them.
31- /// There's a detailed migration guide for the new button and button
32- /// theme classes in
33- /// [flutter.dev/go/material-button-migration-guide] (https://flutter.dev/go/material-button-migration-guide).
34- ///
3523/// This class does not use the current [Theme] or [ButtonTheme] to
3624/// compute default values for unspecified parameters. It's intended to
3725/// be used for custom Material buttons that optionally incorporate defaults
3826/// from the themes or from app-specific sources.
27+ ///
28+ /// This class is planned to be deprecated in a future release, see
29+ /// [ButtonStyleButton] , the base class of [TextButton] , [ElevatedButton] , and
30+ /// [OutlinedButton] .
31+ ///
32+ /// See also:
33+ ///
34+ /// * [TextButton] , a simple flat button without a shadow.
35+ /// * [ElevatedButton] , a filled button whose material elevates when pressed.
36+ /// * [OutlinedButton] , a [TextButton] with a border outline.
3937@Category (< String > ['Material' , 'Button' ])
4038class RawMaterialButton extends StatefulWidget {
4139 /// Create a button based on [Semantics] , [Material] , and [InkWell] widgets.
0 commit comments