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
f3235404
Unverified
Commit
f3235404
authored
Jan 27, 2020
by
Gary Qian
Committed by
GitHub
Jan 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix StrutStyle docs to remove references to leading property. (#49443)
parent
dc084b90
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
strut_style.dart
packages/flutter/lib/src/painting/strut_style.dart
+4
-3
No files found.
packages/flutter/lib/src/painting/strut_style.dart
View file @
f3235404
...
@@ -28,10 +28,10 @@ import 'text_style.dart';
...
@@ -28,10 +28,10 @@ import 'text_style.dart';
///
///
/// The vertical components of strut are as follows:
/// The vertical components of strut are as follows:
///
///
/// *
`leading * fontSize / 2` or half the font leading if `leading` is undefined (half leading)
/// *
Half the font-defined leading
/// * `ascent * height`
/// * `ascent * height`
/// * `descent * height`
/// * `descent * height`
/// *
`leading * fontSize / 2` or half the font leading if `leading` is undefined (half leading)
/// *
Half the font-defined leading
///
///
/// The sum of these four values is the total height of the line.
/// The sum of these four values is the total height of the line.
///
///
...
@@ -40,7 +40,8 @@ import 'text_style.dart';
...
@@ -40,7 +40,8 @@ import 'text_style.dart';
/// split evenly between the top and bottom. The values for `ascent` and
/// split evenly between the top and bottom. The values for `ascent` and
/// `descent` are provided by the font named by [fontFamily]. If no
/// `descent` are provided by the font named by [fontFamily]. If no
/// [fontFamily] or [fontFamilyFallback] is provided, then the platform's
/// [fontFamily] or [fontFamilyFallback] is provided, then the platform's
/// default family will be used.
/// default family will be used. Many fonts will have leading values of
/// zero, so in practice, the leading component is often irrelevant.
///
///
/// When [height] is omitted or null, then the font defined ascent and descent
/// When [height] is omitted or null, then the font defined ascent and descent
/// will be used. The font's combined ascent and descent may be taller or
/// will be used. The font's combined ascent and descent may be taller or
...
...
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