Skip to content

Commit c99b445

Browse files
MiRinChanadil192
authored andcommitted
feat: Disable default focus highlight in app themes to prevent hard keyboard click one key make the screen dark on Android
1 parent 0c60d68 commit c99b445

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

android/app/src/main/res/values-night/styles.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,9 @@
1818
<item name="android:windowBackground">?android:colorBackground</item>
1919

2020
<item name="android:navigationBarColor">@android:color/transparent</item>
21+
<!-- This item to prevent keyboard focus on FlutterView, due to this
22+
application have a full height and width FlutterView, it won't hurt
23+
accessibility. -->
24+
<item name="android:defaultFocusHighlightEnabled">false</item>
2125
</style>
2226
</resources>

android/app/src/main/res/values/styles.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,9 @@
1818
<item name="android:windowBackground">?android:colorBackground</item>
1919

2020
<item name="android:navigationBarColor">@android:color/transparent</item>
21+
<!-- This item to prevent keyboard focus on FlutterView, due to this
22+
application have a full height and width FlutterView, it won't hurt
23+
accessibility. -->
24+
<item name="android:defaultFocusHighlightEnabled">false</item>
2125
</style>
2226
</resources>

0 commit comments

Comments
 (0)