mirror of
https://github.com/flutter/flutter
synced 2024-09-17 23:31:55 +00:00
Remove unused replacement from Visibility.maintain (#123039)
Remove unused replacement from Visibility.maintain
This commit is contained in:
parent
23dbc937a8
commit
c4a81e9e17
|
@ -81,8 +81,6 @@ class Visibility extends StatelessWidget {
|
|||
|
||||
/// Control whether the given [child] is [visible].
|
||||
///
|
||||
/// The [child] and [replacement] arguments must not be null.
|
||||
///
|
||||
/// This is equivalent to the default [Visibility] constructor with all
|
||||
/// "maintain" fields set to true. This constructor should be used in place of
|
||||
/// an [Opacity] widget that only takes on values of `0.0` or `1.0`, as it
|
||||
|
@ -90,13 +88,13 @@ class Visibility extends StatelessWidget {
|
|||
const Visibility.maintain({
|
||||
super.key,
|
||||
required this.child,
|
||||
this.replacement = const SizedBox.shrink(),
|
||||
this.visible = true,
|
||||
}) : maintainState = true,
|
||||
maintainAnimation = true,
|
||||
maintainSize = true,
|
||||
maintainSemantics = true,
|
||||
maintainInteractivity = true;
|
||||
maintainInteractivity = true,
|
||||
replacement = const SizedBox.shrink(); // Unused since maintainState is always true.
|
||||
|
||||
/// The widget to show or hide, as controlled by [visible].
|
||||
///
|
||||
|
|
Loading…
Reference in a new issue