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
7b7870d8
Commit
7b7870d8
authored
Mar 18, 2016
by
Hixie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add yet more dartdocs.
parent
991b50e4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1902 additions
and
0 deletions
+1902
-0
styles.html
packages/flutter/doc/styles.html
+18
-0
icons.dart
packages/flutter/lib/src/material/icons.dart
+1868
-0
text_painter.dart
packages/flutter/lib/src/painting/text_painter.dart
+16
-0
No files found.
packages/flutter/doc/styles.html
View file @
7b7870d8
...
...
@@ -29,3 +29,21 @@
font-size
:
14px
;
}
</style>
<!-- The following rules are from http://google.github.io/material-design-icons/ -->
<link
href=
"https://fonts.googleapis.com/icon?family=Material+Icons"
rel=
"stylesheet"
>
<style>
/* Rules for sizing the icon. */
.material-icons.md-18
{
font-size
:
18px
;
}
.material-icons.md-24
{
font-size
:
24px
;
}
.material-icons.md-36
{
font-size
:
36px
;
}
.material-icons.md-48
{
font-size
:
48px
;
}
/* Rules for using icons as black on a light background. */
.material-icons.md-dark
{
color
:
rgba
(
0
,
0
,
0
,
0.54
);
}
.material-icons.md-dark.md-inactive
{
color
:
rgba
(
0
,
0
,
0
,
0.26
);
}
/* Rules for using icons as white on a dark background. */
.material-icons.md-light
{
color
:
rgba
(
255
,
255
,
255
,
1
);
}
.material-icons.md-light.md-inactive
{
color
:
rgba
(
255
,
255
,
255
,
0.3
);
}
</style>
packages/flutter/lib/src/material/icons.dart
View file @
7b7870d8
This source diff could not be displayed because it is too large. You can
view the blob
instead.
packages/flutter/lib/src/painting/text_painter.dart
View file @
7b7870d8
...
...
@@ -221,6 +221,22 @@ class TextSpan {
}
/// An object that paints a [TextSpan] tree into a [Canvas].
///
/// To use a [TextPainter], follow these steps:
///
/// 1. Create a [TextSpan] tree and pass it to the [TextPainter]
/// constructor.
///
/// 2. Set the [maxWidth] property of the [TextPainter] to the width
/// of the area into which the text should be painted.
///
/// 3. Call [layout] to prepare the paragraph.
///
/// 4. Call [paint] as often as desired to paint the paragraph.
///
/// If the width of the area into which the text is being painted
/// changes, return to step 2. If the text to be painted changes,
/// return to step 1.
class
TextPainter
{
TextPainter
([
TextSpan
text
])
{
this
.
text
=
text
;
...
...
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