Skip to content

Temporarily show the latest entered character in an obscured text field#11830

Merged
jason-simmons merged 1 commit intoflutter:masterfrom
jason-simmons:bug_11817
Aug 30, 2017
Merged

Temporarily show the latest entered character in an obscured text field#11830
jason-simmons merged 1 commit intoflutter:masterfrom
jason-simmons:bug_11817

Conversation

@jason-simmons
Copy link
Member

Fixes #11817

@jason-simmons
Copy link
Member Author

@Hixie

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put a comment inside the {} explaining what state changed (or, better, put the actual state change there).

@Hixie
Copy link
Contributor

Hixie commented Aug 29, 2017

needs a test

@jason-simmons
Copy link
Member Author

done - PTAL

void _cursorTick(Timer timer) {
_showCursor.value = !_showCursor.value;
if (_obscureShowCharTicksPending > 0) {
setState(() { _obscureShowCharTicksPending--; });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor issue, feel free to ignore: consider -= 1 rather than postfix --

@Hixie
Copy link
Contributor

Hixie commented Aug 29, 2017

LGTM

@jason-simmons jason-simmons merged commit d341513 into flutter:master Aug 30, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show last typed character briefly in TextField when obscureText is true

3 participants