Fix Web asking for clipboard permissions (#57324)

This commit is contained in:
Justin McCandless
2020-05-19 17:57:04 -07:00
committed by GitHub
parent 04860d7256
commit 53d7f24521
15 changed files with 796 additions and 119 deletions

View File

@@ -10,3 +10,6 @@ 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,13 +17,14 @@ 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: const BackButton(key: ValueKey<String>('back'))),
appBar: AppBar(leading: BackButton(key: backButtonKey)),
body: Material(
child: Column(children: <Widget>[
TextField(