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
3800118a
Commit
3800118a
authored
Sep 20, 2016
by
Lex Berezhny
Committed by
Adam Barth
Sep 20, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for #5549 (#5949)
parent
e1a5bfb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
input.dart
packages/flutter/lib/src/material/input.dart
+5
-4
No files found.
packages/flutter/lib/src/material/input.dart
View file @
3800118a
...
...
@@ -112,9 +112,9 @@ class _InputState extends State<Input> {
bool
focused
=
focusContext
!=
null
&&
Focus
.
at
(
focusContext
,
autofocus:
config
.
autofocus
);
if
(
_formData
==
null
)
_formData
=
_FormFieldData
.
maybeCreate
(
context
,
this
);
InputValue
value
=
config
.
value
??
_formData
?
.
value
??
InputValue
.
empty
;
ValueChanged
<
InputValue
>
onChanged
=
config
.
onChanged
??
_formData
?
.
onChanged
;
ValueChanged
<
InputValue
>
onSubmitted
=
config
.
onSubmitted
??
_formData
?
.
onSubmitted
;
InputValue
value
=
_formData
?.
value
??
config
.
value
??
InputValue
.
empty
;
ValueChanged
<
InputValue
>
onChanged
=
_formData
?.
onChanged
??
config
.
onChanged
;
ValueChanged
<
InputValue
>
onSubmitted
=
_formData
?.
onSubmitted
??
config
.
onSubmitted
;
String
errorText
=
config
.
errorText
;
if
(
errorText
==
null
&&
config
.
formField
!=
null
&&
config
.
formField
.
validator
!=
null
)
...
...
@@ -260,9 +260,10 @@ class _InputState extends State<Input> {
class
_FormFieldData
{
_FormFieldData
(
this
.
inputState
)
{
assert
(
field
!=
null
);
value
=
inputState
.
config
.
value
??
new
InputValue
();
}
InputValue
value
=
new
InputValue
()
;
InputValue
value
;
final
_InputState
inputState
;
FormField
<
String
>
get
field
=>
inputState
.
config
.
formField
;
...
...
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