From 76ecb0b9a1a9840b0e7d689b1e9fc6d3207e2bae Mon Sep 17 00:00:00 2001 From: xster Date: Fri, 21 Apr 2017 14:12:14 -0700 Subject: [PATCH] Remove InputField (#9520) --- packages/flutter/lib/src/widgets/editable_text.dart | 4 +--- packages/flutter/test/material/text_field_test.dart | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/flutter/lib/src/widgets/editable_text.dart b/packages/flutter/lib/src/widgets/editable_text.dart index e59d3a018ea..bfdc2b99b27 100644 --- a/packages/flutter/lib/src/widgets/editable_text.dart +++ b/packages/flutter/lib/src/widgets/editable_text.dart @@ -104,14 +104,12 @@ class TextEditingController extends ValueNotifier { /// 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 { diff --git a/packages/flutter/test/material/text_field_test.dart b/packages/flutter/test/material/text_field_test.dart index c15ad7a4897..75b321f6c06 100644 --- a/packages/flutter/test/material/text_field_test.dart +++ b/packages/flutter/test/material/text_field_test.dart @@ -640,7 +640,7 @@ void main() { expect(inputBox.hitTest(new HitTestResult(), position: inputBox.globalToLocal(newFourthPos)), isFalse); }); - testWidgets('InputField smoke test', (WidgetTester tester) async { + testWidgets('TextField smoke test', (WidgetTester tester) async { String textFieldValue; Widget builder() { @@ -672,7 +672,7 @@ void main() { await checkText('Hello World'); }); - testWidgets('InputField with global key', (WidgetTester tester) async { + testWidgets('TextField with global key', (WidgetTester tester) async { final GlobalKey textFieldKey = new GlobalKey(debugLabel: 'textFieldKey'); String textFieldValue;