mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Remove InputField (#9520)
This commit is contained in:
parent
10099db4e2
commit
76ecb0b9a1
@ -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 {
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user