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
76ecb0b9
Commit
76ecb0b9
authored
Apr 21, 2017
by
xster
Committed by
GitHub
Apr 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove InputField (#9520)
parent
10099db4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
editable_text.dart
packages/flutter/lib/src/widgets/editable_text.dart
+1
-3
text_field_test.dart
packages/flutter/test/material/text_field_test.dart
+2
-2
No files found.
packages/flutter/lib/src/widgets/editable_text.dart
View file @
76ecb0b9
...
...
@@ -104,14 +104,12 @@ class TextEditingController extends ValueNotifier<TextEditingValue> {
/// movement. This widget does not provide any focus management (e.g.,
/// tap-to-focus).
///
/// Rather than using this widget directly, consider using [InputField], which
/// adds tap-to-focus and cut, copy, and paste commands, or [TextField], which
/// Rather than using this widget directly, consider using [TextField], which
/// is a full-featured, material-design text input field with placeholder text,
/// labels, and [Form] integration.
///
/// See also:
///
/// * [InputField], which adds tap-to-focus and cut, copy, and paste commands.
/// * [TextField], which is a full-featured, material-design text input field
/// with placeholder text, labels, and [Form] integration.
class
EditableText
extends
StatefulWidget
{
...
...
packages/flutter/test/material/text_field_test.dart
View file @
76ecb0b9
...
...
@@ -640,7 +640,7 @@ void main() {
expect
(
inputBox
.
hitTest
(
new
HitTestResult
(),
position:
inputBox
.
globalToLocal
(
newFourthPos
)),
isFalse
);
});
testWidgets
(
'
Inpu
tField smoke test'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'
Tex
tField smoke test'
,
(
WidgetTester
tester
)
async
{
String
textFieldValue
;
Widget
builder
()
{
...
...
@@ -672,7 +672,7 @@ void main() {
await
checkText
(
'Hello World'
);
});
testWidgets
(
'
Inpu
tField with global key'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'
Tex
tField with global key'
,
(
WidgetTester
tester
)
async
{
final
GlobalKey
textFieldKey
=
new
GlobalKey
(
debugLabel:
'textFieldKey'
);
String
textFieldValue
;
...
...
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