Repository: flutter
Issue: [local_auth_android] UI for password authentication shows text for biometric authentication
Labels: platform-android,p: local_auth,package,has reproducible steps,P2,team-android,triaged-android,found in release: 3.13,found in release: 3.14

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

1. Checkout https://github.com/flutter/packages/tree/main/packages/local_auth/local_auth/example
2. Go [to this](https://github.com/flutter/packages/blob/3b602e77e69aac91dbbf2e18260fb70d3a42df23/packages/local_auth/local_auth/example/lib/main.dart#L83) line in your workspace
3. Add [AndroidAuthMessages](https://pub.dev/documentation/local_auth_android/latest/local_auth_android/AndroidAuthMessages-class.html) with a recognizable `biometricHint` set.
4. Run the app and trigger non-biometric authentication.

(I have not tested these steps to reproduce the issue. It seems like an easy-to-reproduce bug, and the package's own repository seemed to a trustworthy source of example code.)

### Expected results

The UI should not show the text you entered for _biometricHint_, because you and not in a biometric authentication flow.

### Actual results

Your _biometricHint_ appears in the PIN/password authentication screen. (See attached screenshot)

### Code sample

<details><summary>Code sample</summary>

```dart
import 'package:local_auth_android/local_auth_android.dart';
// ···
    final bool didAuthenticate = await auth.authenticate(
        localizedReason: 'Please authenticate to show account balance',
        authMessages: const <AuthMessages>[
          AndroidAuthMessages(
            biometricHint: 'This is AndroidAuthMessages.biometricHint',
          ),
        ]);

```

</details>


### Screenshots or Video

<details><summary>Screenshots / Video demonstration</summary>

![local_auth localization](https://github.com/flutter/flutter/assets/8649002/aa651112-a028-467e-953b-a6d9e1877991)

This screenshot shows local_auth's PIN/password authentications screen with all localizable text replaced by the corresponding fields' names in _AndroidAuthMessages_.

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.10.6, on macOS 13.4.1 22F770820d darwin-x64, locale de-DE)
    • Flutter version 3.10.6 on channel stable at /Users/kaiputh/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f468f3366c (5 weeks ago), 2023-07-12 15:19:05 -0700
    • Engine revision cdbeda788a
    • Dart version 3.0.6
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/kaiputh/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: /Users/kaiputh/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Users/kaiputh/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2)
    • IntelliJ at /Users/kaiputh/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.74.1)
    • VS Code at /Users/kaiputh/Downloads/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 13 (API 33) (emulator)
    • macOS (desktop)              • macos         • darwin-x64     • macOS 13.4.1 22F770820d darwin-x64
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 115.0.5790.170

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>