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) { Widget build(BuildContext context) {
return TextField( return TextField(
autofocus: true, autofocus: true,
keyboardType: TextInputType.text,
controller: widget.controller, controller: widget.controller,
obscureText: !_passwordVisible, //This will obscure text dynamically obscureText: !_passwordVisible, //This will obscure text dynamically
keyboardType: TextInputType.visiblePassword,
decoration: InputDecoration( decoration: InputDecoration(
labelText: 'Password', labelText: 'Password',
hintText: 'Enter your password', hintText: 'Enter your password',

View File

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

View File

@ -317,7 +317,8 @@ class _RemotePageState extends State<RemotePage> {
maxLines: null, maxLines: null,
initialValue: initialValue:
_value, // trick way to make backspace work always _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, onChanged: handleInput,
), ),
), ),