deprecated consistency (#75903)
This commit is contained in:
parent
cf72a21aa5
commit
b54d72cf66
@ -98,6 +98,10 @@ class FlatButton extends MaterialButton {
|
|||||||
/// at the start, and 16 at the end, with an 8 pixel gap in between.
|
/// at the start, and 16 at the end, with an 8 pixel gap in between.
|
||||||
///
|
///
|
||||||
/// The [icon], [label], and [clipBehavior] arguments must not be null.
|
/// The [icon], [label], and [clipBehavior] arguments must not be null.
|
||||||
|
@Deprecated(
|
||||||
|
'Use TextButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). '
|
||||||
|
'This feature was deprecated after v1.26.0-18.0.pre.'
|
||||||
|
)
|
||||||
factory FlatButton.icon({
|
factory FlatButton.icon({
|
||||||
Key? key,
|
Key? key,
|
||||||
required VoidCallback? onPressed,
|
required VoidCallback? onPressed,
|
||||||
|
@ -107,6 +107,10 @@ class OutlineButton extends MaterialButton {
|
|||||||
///
|
///
|
||||||
/// The [highlightElevation] argument must be null or a positive value. The
|
/// The [highlightElevation] argument must be null or a positive value. The
|
||||||
/// [icon], [label], [autofocus], and [clipBehavior] arguments must not be null.
|
/// [icon], [label], [autofocus], and [clipBehavior] arguments must not be null.
|
||||||
|
@Deprecated(
|
||||||
|
'Use OutlinedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). '
|
||||||
|
'This feature was deprecated after v1.26.0-18.0.pre.'
|
||||||
|
)
|
||||||
factory OutlineButton.icon({
|
factory OutlineButton.icon({
|
||||||
Key? key,
|
Key? key,
|
||||||
required VoidCallback? onPressed,
|
required VoidCallback? onPressed,
|
||||||
|
@ -116,6 +116,10 @@ class RaisedButton extends MaterialButton {
|
|||||||
///
|
///
|
||||||
/// The [elevation], [highlightElevation], [disabledElevation], [icon],
|
/// The [elevation], [highlightElevation], [disabledElevation], [icon],
|
||||||
/// [label], and [clipBehavior] arguments must not be null.
|
/// [label], and [clipBehavior] arguments must not be null.
|
||||||
|
@Deprecated(
|
||||||
|
'Use ElevatedButton instead. See the migration guide in flutter.dev/go/material-button-migration-guide). '
|
||||||
|
'This feature was deprecated after v1.26.0-18.0.pre.'
|
||||||
|
)
|
||||||
factory RaisedButton.icon({
|
factory RaisedButton.icon({
|
||||||
Key? key,
|
Key? key,
|
||||||
required VoidCallback? onPressed,
|
required VoidCallback? onPressed,
|
||||||
|
@ -269,6 +269,10 @@ class GlobalObjectKey<T extends State<StatefulWidget>> extends GlobalKey<T> {
|
|||||||
@optionalTypeArgs
|
@optionalTypeArgs
|
||||||
class TypeMatcher<T> {
|
class TypeMatcher<T> {
|
||||||
/// Creates a type matcher for the given type parameter.
|
/// Creates a type matcher for the given type parameter.
|
||||||
|
@Deprecated(
|
||||||
|
'TypeMatcher has been deprecated because it is no longer used in framework(only in deprecated methods). '
|
||||||
|
'This feature was deprecated after v1.12.1.'
|
||||||
|
)
|
||||||
const TypeMatcher();
|
const TypeMatcher();
|
||||||
|
|
||||||
/// Returns true if the given object is of type `T`.
|
/// Returns true if the given object is of type `T`.
|
||||||
|
@ -189,16 +189,20 @@ class Registrar extends BinaryMessenger {
|
|||||||
/// as part of a simplification of the web plugins API.
|
/// as part of a simplification of the web plugins API.
|
||||||
@Deprecated(
|
@Deprecated(
|
||||||
'Use Registrar instead. '
|
'Use Registrar instead. '
|
||||||
'This feature was deprecated after v1.24.0-7.0.pre.'
|
'This feature was deprecated after v1.26.0-18.0.pre.'
|
||||||
)
|
)
|
||||||
class PluginRegistry extends Registrar {
|
class PluginRegistry extends Registrar {
|
||||||
/// Creates a [Registrar].
|
/// Creates a [Registrar].
|
||||||
///
|
///
|
||||||
/// The argument is ignored.
|
/// The argument is ignored.
|
||||||
|
@Deprecated(
|
||||||
|
'Use Registrar instead. '
|
||||||
|
'This feature was deprecated after v1.26.0-18.0.pre.'
|
||||||
|
)
|
||||||
PluginRegistry([
|
PluginRegistry([
|
||||||
@Deprecated(
|
@Deprecated(
|
||||||
'This argument is ignored. '
|
'This argument is ignored. '
|
||||||
'This feature was deprecated after v1.24.0-7.0.pre.'
|
'This feature was deprecated after v1.26.0-18.0.pre.'
|
||||||
)
|
)
|
||||||
BinaryMessenger? binaryMessenger,
|
BinaryMessenger? binaryMessenger,
|
||||||
]) : super(); // ignore: avoid_unused_constructor_parameters
|
]) : super(); // ignore: avoid_unused_constructor_parameters
|
||||||
@ -206,7 +210,7 @@ class PluginRegistry extends Registrar {
|
|||||||
/// Returns `this`. The argument is ignored.
|
/// Returns `this`. The argument is ignored.
|
||||||
@Deprecated(
|
@Deprecated(
|
||||||
'This method is redundant. It returns the object on which it is called. '
|
'This method is redundant. It returns the object on which it is called. '
|
||||||
'This feature was deprecated after v1.24.0-7.0.pre.'
|
'This feature was deprecated after v1.26.0-18.0.pre.'
|
||||||
)
|
)
|
||||||
Registrar registrarFor(Type key) => this;
|
Registrar registrarFor(Type key) => this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user