Is it possible to use Keycloak's hosted custom login page directly from Flutter and make it look completely native?
Hey everyone,
I’m working on a Flutter app and using Keycloak for authentication. Instead of building the login UI using Flutter widgets and sending the credentials via an API, I want the app to talk directly to Keycloak as a public client and open Keycloak's hosted custom login page.
My questions are:
Is this fully supported and considered best practice for Flutter? What packages do you recommend for handling the redirect and PKCE (e.g., flutter_appauth vs others)?
How close can we get the Keycloak-hosted HTML/CSS page to look like a native app UI? Has anyone successfully themed Keycloak templates to perfectly match their Flutter app's design system?
Would love to hear about any pitfalls, cookie/session management issues, or tips you have for this setup. Thanks!