-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
After #33293 was merged, a commenter pointed out that this similar problem still exists.
Steps to reproduce
- Run an app with a TextField (see below for an example).
- Long press the field and the selection menu should show (correct).
- Type some text and long press outside of the text to show the menu again (correct).
- Delete the text so the field is empty and long press again. The menu won't be shown (incorrect!).
Code
import 'package:flutter/material.dart';\
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(),
title: 'Text Field Test',
home: MyApp(),
);
}
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("TextField Test"),
),
body: Center(
child: Padding(
padding: const EdgeInsets.all(16.0),
mainAxisAlignment: MainAxisAlignment.center,
child: TextField(),
),
),
);
}
}masewo, Nico04, maxlapides, charleshan, philiplindberg and 3 more
Metadata
Metadata
Assignees
Labels
a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.