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
17980da9
Unverified
Commit
17980da9
authored
Dec 01, 2021
by
Greg Spencer
Committed by
GitHub
Dec 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update outdated macros (#94424)
parent
0eeb026e
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
14 additions
and
14 deletions
+14
-14
selectable_text.dart
packages/flutter/lib/src/material/selectable_text.dart
+1
-1
image_provider.dart
packages/flutter/lib/src/painting/image_provider.dart
+2
-2
text_painter.dart
packages/flutter/lib/src/painting/text_painter.dart
+1
-1
editable.dart
packages/flutter/lib/src/rendering/editable.dart
+1
-1
paragraph.dart
packages/flutter/lib/src/rendering/paragraph.dart
+1
-1
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+1
-1
editable_text.dart
packages/flutter/lib/src/widgets/editable_text.dart
+1
-1
image.dart
packages/flutter/lib/src/widgets/image.dart
+2
-2
implicit_animations.dart
packages/flutter/lib/src/widgets/implicit_animations.dart
+1
-1
text.dart
packages/flutter/lib/src/widgets/text.dart
+3
-3
No files found.
packages/flutter/lib/src/material/selectable_text.dart
View file @
17980da9
...
@@ -414,7 +414,7 @@ class SelectableText extends StatefulWidget {
...
@@ -414,7 +414,7 @@ class SelectableText extends StatefulWidget {
/// {@macro flutter.widgets.Text.semanticsLabel}
/// {@macro flutter.widgets.Text.semanticsLabel}
final
String
?
semanticsLabel
;
final
String
?
semanticsLabel
;
/// {@macro
flutter.dart:
ui.textHeightBehavior}
/// {@macro
dart.
ui.textHeightBehavior}
final
TextHeightBehavior
?
textHeightBehavior
;
final
TextHeightBehavior
?
textHeightBehavior
;
/// {@macro flutter.painting.textPainter.textWidthBasis}
/// {@macro flutter.painting.textPainter.textWidthBasis}
...
...
packages/flutter/lib/src/painting/image_provider.dart
View file @
17980da9
...
@@ -186,7 +186,7 @@ typedef DecoderCallback = Future<ui.Codec> Function(Uint8List bytes, {int? cache
...
@@ -186,7 +186,7 @@ typedef DecoderCallback = Future<ui.Codec> Function(Uint8List bytes, {int? cache
/// The type argument does not have to be specified when using the type as an
/// The type argument does not have to be specified when using the type as an
/// argument (where any image provider is acceptable).
/// argument (where any image provider is acceptable).
///
///
/// The following image formats are supported: {@macro
flutter.dart:
ui.imageFormats}
/// The following image formats are supported: {@macro
dart.
ui.imageFormats}
///
///
/// ## Lifecycle of resolving an image
/// ## Lifecycle of resolving an image
///
///
...
@@ -938,7 +938,7 @@ class MemoryImage extends ImageProvider<MemoryImage> {
...
@@ -938,7 +938,7 @@ class MemoryImage extends ImageProvider<MemoryImage> {
/// The bytes to decode into an image.
/// The bytes to decode into an image.
///
///
/// The bytes represent encoded image bytes and can be encoded in any of the
/// The bytes represent encoded image bytes and can be encoded in any of the
/// following supported image formats: {@macro
flutter.dart:
ui.imageFormats}
/// following supported image formats: {@macro
dart.
ui.imageFormats}
///
///
/// See also:
/// See also:
///
///
...
...
packages/flutter/lib/src/painting/text_painter.dart
View file @
17980da9
...
@@ -391,7 +391,7 @@ class TextPainter {
...
@@ -391,7 +391,7 @@ class TextPainter {
markNeedsLayout
();
markNeedsLayout
();
}
}
/// {@macro
flutter.dart:
ui.textHeightBehavior}
/// {@macro
dart.
ui.textHeightBehavior}
ui
.
TextHeightBehavior
?
get
textHeightBehavior
=>
_textHeightBehavior
;
ui
.
TextHeightBehavior
?
get
textHeightBehavior
=>
_textHeightBehavior
;
ui
.
TextHeightBehavior
?
_textHeightBehavior
;
ui
.
TextHeightBehavior
?
_textHeightBehavior
;
set
textHeightBehavior
(
ui
.
TextHeightBehavior
?
value
)
{
set
textHeightBehavior
(
ui
.
TextHeightBehavior
?
value
)
{
...
...
packages/flutter/lib/src/rendering/editable.dart
View file @
17980da9
...
@@ -547,7 +547,7 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin,
...
@@ -547,7 +547,7 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin,
/// The default value of this property is false.
/// The default value of this property is false.
bool
ignorePointer
;
bool
ignorePointer
;
/// {@macro
flutter.dart:
ui.textHeightBehavior}
/// {@macro
dart.
ui.textHeightBehavior}
TextHeightBehavior
?
get
textHeightBehavior
=>
_textPainter
.
textHeightBehavior
;
TextHeightBehavior
?
get
textHeightBehavior
=>
_textPainter
.
textHeightBehavior
;
set
textHeightBehavior
(
TextHeightBehavior
?
value
)
{
set
textHeightBehavior
(
TextHeightBehavior
?
value
)
{
if
(
_textPainter
.
textHeightBehavior
==
value
)
if
(
_textPainter
.
textHeightBehavior
==
value
)
...
...
packages/flutter/lib/src/rendering/paragraph.dart
View file @
17980da9
...
@@ -288,7 +288,7 @@ class RenderParagraph extends RenderBox
...
@@ -288,7 +288,7 @@ class RenderParagraph extends RenderBox
markNeedsLayout
();
markNeedsLayout
();
}
}
/// {@macro
flutter.dart:
ui.textHeightBehavior}
/// {@macro
dart.
ui.textHeightBehavior}
ui
.
TextHeightBehavior
?
get
textHeightBehavior
=>
_textPainter
.
textHeightBehavior
;
ui
.
TextHeightBehavior
?
get
textHeightBehavior
=>
_textPainter
.
textHeightBehavior
;
set
textHeightBehavior
(
ui
.
TextHeightBehavior
?
value
)
{
set
textHeightBehavior
(
ui
.
TextHeightBehavior
?
value
)
{
if
(
_textPainter
.
textHeightBehavior
==
value
)
if
(
_textPainter
.
textHeightBehavior
==
value
)
...
...
packages/flutter/lib/src/widgets/basic.dart
View file @
17980da9
...
@@ -5561,7 +5561,7 @@ class RichText extends MultiChildRenderObjectWidget {
...
@@ -5561,7 +5561,7 @@ class RichText extends MultiChildRenderObjectWidget {
/// {@macro flutter.painting.textPainter.textWidthBasis}
/// {@macro flutter.painting.textPainter.textWidthBasis}
final
TextWidthBasis
textWidthBasis
;
final
TextWidthBasis
textWidthBasis
;
/// {@macro
flutter.dart:
ui.textHeightBehavior}
/// {@macro
dart.
ui.textHeightBehavior}
final
ui
.
TextHeightBehavior
?
textHeightBehavior
;
final
ui
.
TextHeightBehavior
?
textHeightBehavior
;
@override
@override
...
...
packages/flutter/lib/src/widgets/editable_text.dart
View file @
17980da9
...
@@ -595,7 +595,7 @@ class EditableText extends StatefulWidget {
...
@@ -595,7 +595,7 @@ class EditableText extends StatefulWidget {
/// {@endtemplate}
/// {@endtemplate}
final
bool
obscureText
;
final
bool
obscureText
;
/// {@macro
flutter.dart:
ui.textHeightBehavior}
/// {@macro
dart.
ui.textHeightBehavior}
final
TextHeightBehavior
?
textHeightBehavior
;
final
TextHeightBehavior
?
textHeightBehavior
;
/// {@macro flutter.painting.textPainter.textWidthBasis}
/// {@macro flutter.painting.textPainter.textWidthBasis}
...
...
packages/flutter/lib/src/widgets/image.dart
View file @
17980da9
...
@@ -244,7 +244,7 @@ typedef ImageErrorWidgetBuilder = Widget Function(
...
@@ -244,7 +244,7 @@ typedef ImageErrorWidgetBuilder = Widget Function(
/// * [new Image.file], for obtaining an image from a [File].
/// * [new Image.file], for obtaining an image from a [File].
/// * [new Image.memory], for obtaining an image from a [Uint8List].
/// * [new Image.memory], for obtaining an image from a [Uint8List].
///
///
/// The following image formats are supported: {@macro
flutter.dart:
ui.imageFormats}
/// The following image formats are supported: {@macro
dart.
ui.imageFormats}
///
///
/// To automatically perform pixel-density-aware asset resolution, specify the
/// To automatically perform pixel-density-aware asset resolution, specify the
/// image using an [AssetImage] and make sure that a [MaterialApp], [WidgetsApp],
/// image using an [AssetImage] and make sure that a [MaterialApp], [WidgetsApp],
...
@@ -647,7 +647,7 @@ class Image extends StatefulWidget {
...
@@ -647,7 +647,7 @@ class Image extends StatefulWidget {
///
///
/// The `bytes` argument specifies encoded image bytes, which can be encoded
/// The `bytes` argument specifies encoded image bytes, which can be encoded
/// in any of the following supported image formats:
/// in any of the following supported image formats:
/// {@macro
flutter.dart:
ui.imageFormats}
/// {@macro
dart.
ui.imageFormats}
///
///
/// The `scale` argument specifies the linear scale factor for drawing this
/// The `scale` argument specifies the linear scale factor for drawing this
/// image at its intended size and applies to both the width and the height.
/// image at its intended size and applies to both the width and the height.
...
...
packages/flutter/lib/src/widgets/implicit_animations.dart
View file @
17980da9
...
@@ -1945,7 +1945,7 @@ class AnimatedDefaultTextStyle extends ImplicitlyAnimatedWidget {
...
@@ -1945,7 +1945,7 @@ class AnimatedDefaultTextStyle extends ImplicitlyAnimatedWidget {
/// See [TextWidthBasis] for possible values and their implications.
/// See [TextWidthBasis] for possible values and their implications.
final
TextWidthBasis
textWidthBasis
;
final
TextWidthBasis
textWidthBasis
;
/// {@macro
flutter.dart:
ui.textHeightBehavior}
/// {@macro
dart.
ui.textHeightBehavior}
final
ui
.
TextHeightBehavior
?
textHeightBehavior
;
final
ui
.
TextHeightBehavior
?
textHeightBehavior
;
@override
@override
...
...
packages/flutter/lib/src/widgets/text.dart
View file @
17980da9
...
@@ -150,7 +150,7 @@ class DefaultTextStyle extends InheritedTheme {
...
@@ -150,7 +150,7 @@ class DefaultTextStyle extends InheritedTheme {
/// See [TextWidthBasis] for possible values and their implications.
/// See [TextWidthBasis] for possible values and their implications.
final
TextWidthBasis
textWidthBasis
;
final
TextWidthBasis
textWidthBasis
;
/// {@macro
flutter.dart:
ui.textHeightBehavior}
/// {@macro
dart.
ui.textHeightBehavior}
final
ui
.
TextHeightBehavior
?
textHeightBehavior
;
final
ui
.
TextHeightBehavior
?
textHeightBehavior
;
/// The closest instance of this class that encloses the given context.
/// The closest instance of this class that encloses the given context.
...
@@ -241,7 +241,7 @@ class DefaultTextHeightBehavior extends InheritedTheme {
...
@@ -241,7 +241,7 @@ class DefaultTextHeightBehavior extends InheritedTheme {
assert
(
child
!=
null
),
assert
(
child
!=
null
),
super
(
key:
key
,
child:
child
);
super
(
key:
key
,
child:
child
);
/// {@macro
flutter.dart:
ui.textHeightBehavior}
/// {@macro
dart.
ui.textHeightBehavior}
final
TextHeightBehavior
textHeightBehavior
;
final
TextHeightBehavior
textHeightBehavior
;
/// The closest instance of this class that encloses the given context.
/// The closest instance of this class that encloses the given context.
...
@@ -513,7 +513,7 @@ class Text extends StatelessWidget {
...
@@ -513,7 +513,7 @@ class Text extends StatelessWidget {
/// {@macro flutter.painting.textPainter.textWidthBasis}
/// {@macro flutter.painting.textPainter.textWidthBasis}
final
TextWidthBasis
?
textWidthBasis
;
final
TextWidthBasis
?
textWidthBasis
;
/// {@macro
flutter.dart:
ui.textHeightBehavior}
/// {@macro
dart.
ui.textHeightBehavior}
final
ui
.
TextHeightBehavior
?
textHeightBehavior
;
final
ui
.
TextHeightBehavior
?
textHeightBehavior
;
@override
@override
...
...
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