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
64424a6a
Unverified
Commit
64424a6a
authored
Sep 05, 2019
by
Justin McCandless
Committed by
GitHub
Sep 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Null TextWidthBasis docs (#39761)
Docs improvement after seeing "null" showing up for TextWidthBasis.
parent
2640bfeb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
selectable_text.dart
packages/flutter/lib/src/material/selectable_text.dart
+1
-1
text_painter.dart
packages/flutter/lib/src/painting/text_painter.dart
+5
-3
text.dart
packages/flutter/lib/src/widgets/text.dart
+2
-1
No files found.
packages/flutter/lib/src/material/selectable_text.dart
View file @
64424a6a
...
...
@@ -374,7 +374,7 @@ class SelectableText extends StatefulWidget {
/// {@macro flutter.widgets.edtiableText.scrollPhysics}
final
ScrollPhysics
scrollPhysics
;
/// {@macro flutter.
dart:ui.text.T
extWidthBasis}
/// {@macro flutter.
painting.textPainter.t
extWidthBasis}
final
TextWidthBasis
textWidthBasis
;
@override
...
...
packages/flutter/lib/src/painting/text_painter.dart
View file @
64424a6a
...
...
@@ -79,9 +79,9 @@ class PlaceholderDimensions {
}
}
/// The different ways of
conside
ring the width of one or more lines of text.
/// The different ways of
measu
ring the width of one or more lines of text.
///
/// See [Text.
widthType]
.
/// See [Text.
textWidthBasis], for example
.
enum
TextWidthBasis
{
/// Multiline text will take up the full width given by the parent. For single
/// line text, only the minimum amount of width needed to contain the text
...
...
@@ -323,7 +323,9 @@ class TextPainter {
_needsLayout
=
true
;
}
/// {@macro flutter.dart:ui.text.TextWidthBasis}
/// {@template flutter.painting.textPainter.textWidthBasis}
/// Defines how to measure the width of the rendered text.
/// {@endtemplate}
TextWidthBasis
get
textWidthBasis
=>
_textWidthBasis
;
TextWidthBasis
_textWidthBasis
;
set
textWidthBasis
(
TextWidthBasis
value
)
{
...
...
packages/flutter/lib/src/widgets/text.dart
View file @
64424a6a
...
...
@@ -135,6 +135,7 @@ class DefaultTextStyle extends InheritedTheme {
final
int
maxLines
;
/// The strategy to use when calculating the width of the Text.
///
/// See [TextWidthBasis] for possible values and their implications.
final
TextWidthBasis
textWidthBasis
;
...
...
@@ -410,7 +411,7 @@ class Text extends StatelessWidget {
/// ```
final
String
semanticsLabel
;
/// {@macro flutter.
dart:ui.text.T
extWidthBasis}
/// {@macro flutter.
painting.textPainter.t
extWidthBasis}
final
TextWidthBasis
textWidthBasis
;
@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