Revert " Bring back paste button hide behavior 3 (#57139)" (#57286)

This reverts commit 8de07d5527.
This commit is contained in:
nturgut
2020-05-15 10:42:37 -07:00
committed by GitHub
parent 3b4f686436
commit 32547dcc7e
15 changed files with 119 additions and 752 deletions

View File

@@ -10,6 +10,3 @@ const String normalTextFieldKeyValue = 'textFieldNormal';
/// The string supplied to the [ValueKey] for the password text field.
const String passwordTextFieldKeyValue = 'passwordField';
/// The string supplied to the [ValueKey] for the page navigation back button.
const String backButtonKeyValue = 'back';

View File

@@ -17,14 +17,13 @@ class TextFieldPage extends StatefulWidget {
class _TextFieldPageState extends State<TextFieldPage> {
final TextEditingController _normalController = TextEditingController();
final TextEditingController _passwordController = TextEditingController();
final Key backButtonKey = const ValueKey<String>(backButtonKeyValue);
final Key normalTextFieldKey = const ValueKey<String>(normalTextFieldKeyValue);
final Key passwordTextFieldKey = const ValueKey<String>(passwordTextFieldKeyValue);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(leading: BackButton(key: backButtonKey)),
appBar: AppBar(leading: const BackButton(key: ValueKey<String>('back'))),
body: Material(
child: Column(children: <Widget>[
TextField(