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
5b76b350
Unverified
Commit
5b76b350
authored
Sep 15, 2020
by
Filip Hracek
Committed by
GitHub
Sep 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve docs of ImageFiltered and BackdropFilter (#65503)
parent
039f1cf8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+6
-0
image_filter.dart
packages/flutter/lib/src/widgets/image_filter.dart
+6
-0
No files found.
packages/flutter/lib/src/widgets/basic.dart
View file @
5b76b350
...
...
@@ -384,8 +384,14 @@ class ShaderMask extends SingleChildRenderObjectWidget {
/// This effect is relatively expensive, especially if the filter is non-local,
/// such as a blur.
///
/// If all you want to do is apply an [ImageFilter] to a single widget
/// (as opposed to applying the filter to everything _beneath_ a widget), use
/// [ImageFiltered] instead. For that scenario, [ImageFiltered] is both
/// easier to use and less expensive than [BackdropFilter].
///
/// See also:
///
/// * [ImageFiltered], which applies an [ImageFilter] to its child.
/// * [DecoratedBox], which draws a background under (or over) a widget.
/// * [Opacity], which changes the opacity of the widget itself.
class
BackdropFilter
extends
SingleChildRenderObjectWidget
{
...
...
packages/flutter/lib/src/widgets/image_filter.dart
View file @
5b76b350
...
...
@@ -12,6 +12,12 @@ import 'package:flutter/rendering.dart';
import
'framework.dart'
;
/// Applies an [ImageFilter] to its child.
///
/// See also:
///
/// * [BackdropFilter], which applies an [ImageFilter] to everything
/// beneath its child.
/// * [ColorFiltered], which applies a [ColorFilter] to its child.
@immutable
class
ImageFiltered
extends
SingleChildRenderObjectWidget
{
/// Creates a widget that applies an [ImageFilter] to its child.
...
...
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