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
fecba009
Commit
fecba009
authored
Mar 09, 2016
by
Adam Barth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve InputValue#toString
parent
5faf84c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
text_editing.dart
packages/flutter/lib/src/painting/text_editing.dart
+1
-0
editable.dart
packages/flutter/lib/src/widgets/editable.dart
+2
-3
No files found.
packages/flutter/lib/src/painting/text_editing.dart
View file @
fecba009
...
...
@@ -66,6 +66,7 @@ class TextRange {
end
.
hashCode
);
String
toString
()
=>
'TextRange(start:
$start
, end:
$end
)'
;
}
/// A range of text that represents a selection.
...
...
packages/flutter/lib/src/widgets/editable.dart
View file @
fecba009
...
...
@@ -101,7 +101,7 @@ class InputValue {
static
const
InputValue
empty
=
const
InputValue
();
String
toString
()
=>
'
$runtimeType
(text:
$text
, selection:
$selection
, composing:
$composing
)'
;
String
toString
()
=>
'
$runtimeType
(text:
\
u2524
$text
\
u251C
, selection:
$selection
, composing:
$composing
)'
;
bool
operator
==(
dynamic
other
)
{
if
(
identical
(
this
,
other
))
...
...
@@ -207,9 +207,8 @@ class RawInputLineState extends ScrollableState<RawInputLine> {
void
didUpdateConfig
(
RawInputLine
oldConfig
)
{
if
(
_keyboardClient
.
inputValue
!=
config
.
value
)
{
_keyboardClient
.
inputValue
=
config
.
value
;
if
(
_isAttachedToKeyboard
)
{
if
(
_isAttachedToKeyboard
)
_keyboardHandle
.
setEditingState
(
_keyboardClient
.
editingState
);
}
}
}
...
...
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