You can use mkcert
to create a certificate and sign it with a Certificate Authority (CA) that is trusted locally by your device and browser.
As for this feature to be directly baked into the Flutter plugin, there's an active feature request on GitHub that you can track.