fix ( issue

This commit is contained in:
open-trade 2020-12-22 14:41:14 +08:00
parent d8bb3384d9
commit eac83438e1
3 changed files with 5 additions and 3 deletions

View File

@ -129,9 +129,9 @@ class _PasswordWidgetState extends State<PasswordWidget> {
Widget build(BuildContext context) {
return TextField(
autofocus: true,
keyboardType: TextInputType.text,
controller: widget.controller,
obscureText: !_passwordVisible, //This will obscure text dynamically
keyboardType: TextInputType.visiblePassword,
decoration: InputDecoration(
labelText: 'Password',
hintText: 'Enter your password',

View File

@ -145,13 +145,14 @@ class _HomePageState extends State<HomePage> {
child: TextField(
autocorrect: false,
enableSuggestions: false,
keyboardType: TextInputType.visiblePassword,
// keyboardType: TextInputType.number,
style: TextStyle(
fontFamily: 'WorkSans',
fontWeight: FontWeight.bold,
fontSize: 30,
color: Color(0xFF00B6F0),
),
// keyboardType: TextInputType.number,
decoration: InputDecoration(
labelText: 'Remote ID',
// hintText: 'Enter your remote ID',

View File

@ -317,7 +317,8 @@ class _RemotePageState extends State<RemotePage> {
maxLines: null,
initialValue:
_value, // trick way to make backspace work always
keyboardType: TextInputType.multiline,
keyboardType: TextInputType
.visiblePassword, // must use visiblePassword here, if else when input '(', new ')' will be auto appended on android, cause our proboems
onChanged: handleInput,
),
),