exponea / exponea-flutter-sdk

MIT License
7 stars 9 forks source link

AppInbox list screen is always in Dark theme on Android #17

Closed bshv-ciklum closed 1 year ago

bshv-ciklum commented 1 year ago

Our app supports only Light UI theme with white background and dark text colors. We are using AppInboxProvider Widget to show app inbox messages. Currently on Android it is always in Dark theme which is a complete mismatch to other parts of our app.

Current AppInbox list screen:

image

Please provide the ability to select Light theme for AppInbox screen.

roland-misica commented 1 year ago

This is intended behavior. By default on Android, the Inbox is in dark mode but this can be easily overridden by specifying a custom theme for every component as described in documentation -> UI components styling (only Android).

For example, if you need only light themed app inbox, just add

    <style name="Theme.AppInboxListActivity" parent="@style/Theme.AppCompat.Light.NoActionBar"/>
    <style name="Theme.AppInboxAppBarOverlay" parent="ThemeOverlay.AppCompat.Light"/>

in your flutter-project/android/app/src/main/res/values(-night)/styles.xml

please do let me know if the issue is resolved or if there are any doubts.