CopyPastor

Detecting plagiarism made easy.

Score: 1; Reported for: Exact paragraph match Open both answers

Possible Plagiarism

Reposted on 2026-01-12
by Micopero

Original Post

Original - Posted on 2026-01-12
by Micopero



            
Present in both answers; Present only in the new answer; Present only in the old answer;

To fully hide the password, including the first character, you should set **"showCursor"** to *false*. Naturally, **obscureText** must also be set to *true*.
```php child: TextField( controller: _passwordController, keyboardType: TextInputType.visiblePassword, decoration: InputDecoration( labelText: 'Password', errorText: _passwordError, errorMaxLines: 3, ), obscureText: true, showCursor: false, autocorrect: false, enableSuggestions: false, ), ```
In addition, also set **"autcorrect"** and **"enableSuggestions"** to false to prevent the phone dictionary from storing the password.
If you want the password to be entirely obscured, including the leading character, then you need to set **"showCursor"** to *false*. Of course you mainly need **"obscureText"** to be *true*.
```php child: TextField( controller: _passwordController, keyboardType: TextInputType.visiblePassword, decoration: InputDecoration( labelText: 'Password', errorText: _passwordError, errorMaxLines: 3, ), obscureText: true, showCursor: false, autocorrect: false, enableSuggestions: false, ), ```
This solution ensures that not a single characters is visible. You should also set **"autocorrect"** and **"enableSuggestions"** to **false**, to prevent the phone dictionary from storing the user password as a word.

        
Present in both answers; Present only in the new answer; Present only in the old answer;