Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
c4a81e9e
Unverified
Commit
c4a81e9e
authored
Mar 20, 2023
by
Michael Goderbauer
Committed by
GitHub
Mar 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused replacement from Visibility.maintain (#123039)
Remove unused replacement from Visibility.maintain
parent
23dbc937
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
visibility.dart
packages/flutter/lib/src/widgets/visibility.dart
+2
-4
No files found.
packages/flutter/lib/src/widgets/visibility.dart
View file @
c4a81e9e
...
...
@@ -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].
///
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment