How to connect Flutter to a MySQL database is the best way, is it safe to put the connection string in it, and what do I need to set up this method?
Note that I prefer to use C# for the connection script.
I tried MySQL package1 but found it to be unsafe.
Start by creating a web service (preferably REST) and deploy it on any web server. Then use that endpoint in your Flutter app. Because it is not recommended to connect to the database directly from the front end