Resolves #425 Paste option for text fields

This commit is contained in:
estevez-dev
2019-09-05 00:43:45 +03:00
parent 57ebdbbe85
commit 83defb08f1
2 changed files with 4 additions and 28 deletions

View File

@ -73,13 +73,7 @@ class _TextInputStateWidgetState extends State<TextInputStateWidget> {
child: TextField(
focusNode: _focusNode,
obscureText: entity.isPasswordField,
controller: new TextEditingController.fromValue(
new TextEditingValue(
text: _tmpValue,
selection:
new TextSelection.collapsed(offset: _tmpValue.length)
)
),
controller: TextEditingController.fromValue(TextEditingValue(text: _tmpValue)),
onChanged: (value) {
_tmpValue = value;
}),