Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable password managers autofill feature for flutter apps?

we're currently developing a Flutter app (Dart language).

There is a Login Screen with two TextField's.

The password field has

obscureText: true,

as property, which hides any input.

Password Manager

More and more people are using password manager like 1password.
How can we enable this feature in flutter?

Like this:

Example in other App

Currently the popup doesn't show. Nothing found on the official docs, maybe there is a google documentation about it in general?

Thanks for any help!!

like image 790
Favnyr Avatar asked Oct 27 '18 14:10

Favnyr


1 Answers

Check out the platform_inputs package: https://pub.dev/packages/platform_inputs

Their code sample seems to match your problem, it shows how when a textfield's textContentType is set to TextContentType.password with this package it will show the native password message.

like image 139
Benjamin Swerdlow Avatar answered Nov 09 '22 21:11

Benjamin Swerdlow