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
96b9d647
Commit
96b9d647
authored
Jun 07, 2017
by
Michael Goderbauer
Committed by
GitHub
Jun 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Center all strings in SemanticDebugger (#10570)
Fixes
https://github.com/flutter/flutter/issues/4647
parent
c445c088
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
semantics_debugger.dart
packages/flutter/lib/src/widgets/semantics_debugger.dart
+1
-0
No files found.
packages/flutter/lib/src/widgets/semantics_debugger.dart
View file @
96b9d647
...
@@ -252,6 +252,7 @@ void _paintMessage(Canvas canvas, SemanticsNode node) {
...
@@ -252,6 +252,7 @@ void _paintMessage(Canvas canvas, SemanticsNode node) {
canvas
.
clipRect
(
rect
);
canvas
.
clipRect
(
rect
);
final
TextPainter
textPainter
=
new
TextPainter
()
final
TextPainter
textPainter
=
new
TextPainter
()
..
text
=
new
TextSpan
(
style:
_messageStyle
,
text:
message
)
..
text
=
new
TextSpan
(
style:
_messageStyle
,
text:
message
)
..
textAlign
=
TextAlign
.
center
..
layout
(
maxWidth:
rect
.
width
);
..
layout
(
maxWidth:
rect
.
width
);
textPainter
.
paint
(
canvas
,
FractionalOffset
.
center
.
inscribe
(
textPainter
.
size
,
rect
).
topLeft
);
textPainter
.
paint
(
canvas
,
FractionalOffset
.
center
.
inscribe
(
textPainter
.
size
,
rect
).
topLeft
);
...
...
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