My app uses dark theme as
ThemeData.dark().copyWith( ... ),
that defined for theme
property of MaterialApp
.
As far as the keyboardAppearance
property does work only in ios there is no way how to make the same on android. Is there?
in terms of docs, this functionality doesn't exist for android, unfortunately. This only works for ios:https://api.flutter.dev/flutter/material/TextField/keyboardAppearance.html
And also there is an issue opened on GitHub about that: https://github.com/flutter/flutter/issues/75521
This explains that we can't make a decision in terms of the keyboard's theme from an app. The keyboard is a standalone application, and it's up to the keyboard to decide which theme it would take. It could have been implemented to follow the device's dark mode settings (e.g. Samsung Galaxy's default keyboard), or it could just provide its own settings to change themes dynamically.