We connect a Flutter application to a Postgresql Server using a Postgres API to get the connection . The project uses Models class as the mid layer between the application and the server.
We use Flutter version with null safety feature.
You can see the implementation of this code in https://youtube.com/playlist?list=PLPajU_HwKxoxJdwhTzyISXTDVmNXnaru5