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
e7f33586
Commit
e7f33586
authored
Apr 23, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address review comments (#3515)
Somehow I missed these in my previous patch.
parent
8ac9cc45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
basic.dart
packages/flutter/lib/src/widgets/basic.dart
+16
-15
No files found.
packages/flutter/lib/src/widgets/basic.dart
View file @
e7f33586
...
...
@@ -1720,18 +1720,19 @@ class Flexible extends ParentDataWidget<Flex> {
/// A paragraph of rich text.
///
/// The [RichText] widget displays text
using a variety of
different styles. The
/// The [RichText] widget displays text
that uses multiple
different styles. The
/// text to display is described using a tree of [TextSpan] objects, each of
/// which has an associated style
, which is used for that subtree. The tex
t
///
might break across multiple lines or might all be displayed on the layout
/// constraints.
/// which has an associated style
that is used for that subtree. The text migh
t
///
break across multiple lines or might all be displayed on the same line
///
depending on the layout
constraints.
///
/// Text displayed in a [RichText] widget must be explicitly styled. When
/// picking which style to use, consider using
the closest enclosing
/// [
DefaultTextStyle
] to provide defaults.
/// picking which style to use, consider using
[DefaultTextStyle.of] the current
/// [
BuildContext
] to provide defaults.
///
/// All the text uses the same style, consider using the [Text] widget, which is
/// less verbose and integrates with [DefaultTextStyle] for default styling.
/// When all the text uses the same style, consider using the [Text] widget,
/// which is less verbose and integrates with [DefaultTextStyle] for default
/// styling.
///
/// See also:
///
...
...
@@ -1791,15 +1792,15 @@ class DefaultTextStyle extends InheritedWidget {
/// A run of text with a single style.
///
/// The [Text] widget displays a string of text with single style. The string
/// might break across multiple lines or might all be displayed on the
layout
/// constraints.
/// might break across multiple lines or might all be displayed on the
same line
///
depending on the layout
constraints.
///
/// The [style] argument is optional. When omitted, the text will use the style
/// from the closest enclosing [DefaultTextStyle]
by default. If the given
///
style's [TextStyle.inherit] property is true, the given style will be
///
merged with the closest enclosing [DefaultTextStyle]. This merging behavior
///
is useful, for example, to make the text bold while using the default font
///
family and
size.
/// from the closest enclosing [DefaultTextStyle]
. If the given style's
///
[TextStyle.inherit] property is true, the given style will be merged with
///
the closest enclosing [DefaultTextStyle]. This merging behavior is useful,
///
for example, to make the text bold while using the default font family and
/// size.
///
/// To display text that uses multiple styles (e.g., a paragraph with some bold
/// words), use [RichText].
...
...
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