Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[DOC][local_auth] Amend android theme compatibility suggestion
  • Loading branch information
Abel1027 committed Feb 7, 2023
commit 443aa37f2b60c0a70e0bd1cf2a2c54c82528d502
12 changes: 5 additions & 7 deletions packages/local_auth/local_auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,11 @@ This will return an error if there was no hardware available.

#### Android theme

You need to update the `LaunchTheme` parent style with a valid `Theme.AppCompat`
theme to be compatible with **Android version 8 and below**, otherwise the app
crashes for those versions. For example, use `Theme.AppCompat.DayNight` to
Your `LaunchTheme`'s parent must be a valid `Theme.AppCompat` theme to prevent
crashes on Android 8 and below. For example, use `Theme.AppCompat.DayNight` to
enable light/dark modes for the biometric dialog. To do that go to
`android/app/src/main/res/values/styles.xml` and look for the style with name
`LaunchTheme` (Notice that `LaunchTheme` must be referenced in the
`AndroidManifest.xml` file to apply the changes made in `styles.xml`).
Then change the parent for that style as follows:
`LaunchTheme`. Then change the parent for that style as follows:

```xml
...
Expand All @@ -274,7 +271,8 @@ Then change the parent for that style as follows:
...
```

If you don't have a `styles.xml` file for your Android project you can set up the Android theme directly in `android/app/src/main/AndroidManifest.xml`:
If you don't have a `styles.xml` file for your Android project you can set up
the Android theme directly in `android/app/src/main/AndroidManifest.xml`:

```xml
...
Expand Down