I'm tying to connect to my mySql database using mySql1 package. Here's my code of DB Connection.
import 'package:mysql1/mysql1.dart';
class Database {
static var s = ConnectionSettings(
user: "User",
password: "Password",
host: "host",
port: 3306,
db: "db",
);
static Future<MySqlConnection> connect() async{
return await MySqlConnection.connect(s);
}}
Expected Results: It should connect the DB with my Flutter Code for Web.
Actual Results: Unable to connect the DB
The mysql1 plugin is not compatible with the web. A safety issue, no doubt.