How to connect flutter web to mysql - flutter

I run my flutter app in 2 emulators, android and chrome. In android emulator my app showed mysql data but flutter web didn't show the data in chrome emulator.
Any help?

Which plugin are you using to access SQL data? If you're using sqflite, it doesn't have support for web. Note that sqflite are commonly used for local storage. If you're looking for other end-users to access the same database as well, you might want to consider looking into other solutions like Firebase Cloud Firestore. Otherwise, you can try using drift plugin - which has SQL support for mobile and web.

Related

Flutter Add-to-App use different firebase version with firebase in Native Host app

I'm integrating flutter add-to-app module into my existing native host app. Both native host app and Flutter add-to-app module are using firebase crashlytics, but they are using different version of firebase.
Flutter module -> use latest firebase version
Native host app -> use quite old firebase version
This lead to following error (crash) when flutter module trying to record an error.
'com.google.firebase.crashlytics.FirebaseCrashlytics.core' is inaccessible to class 'com.google.firebase.crashlytics.FlutterFirebaseCrashlyticsInternal'
I assumed that this is because there are some updates in latest firebase so FlutterFirebaseCrashlyticsInternal somehow can't talk to FirebaseCrashlytics.core
Note:
The only firebase feature I'm going to use is: Firebase crashlytics
Due to some reasons, I'm unable to upgrade firebase version in Native app at this moment.
Wondering if this is something I can fix from flutter side without giving any change on Native Host app side? Or the only way to fix is update firebase configured on native side to latest version?

Is there a internet permission command to be added in the Windows Folder of the Flutter Application for internet usage?

I am developing a simple flutter application for my manufacturing facility, where we want to input the stock ids of the raw materials which were used to develop the product. I made a simple Flutter Application with Windows and macOS and Android & IOS enabled while initiating the project in Android Studio. I am using Mysql1 dependency from pub dev to avoid writing large amounts of backend and use other frameworks.
Furthermore, I also added internet permission for the app in the Androids folder. However, when I was trying to do it on the windows app, the MySQL query would not go through. The MySql server is hosted on Digital Ocean. I entered the exact details,
But works on the android phone and not on windows applications. Do we need to add any same permission line in the Windows Folder?
I installed the application on my physical, it is perfectly sending the data to the MySQL table in the DigitalOcean server. However, doesn't seem to do the same in the windows application. I want it to run the query the same as in the windows desktop app as in the android app.
Any help would be appreciated,
Thanks and Regards.

which Local relational Data Base for Flutter windows app after 2.10 stable version. Should Use?

Hello There I want to know is there any way to implement the local relational database for the windows Flutter app. because the flutter 2.10 is here with windows stable..
one of my app have Floor database used for relational database for IOS and ANDROID version of my app.
now I want to create the same app for windows version but Floor is not supported flutter windows.
Now I'm stuck until I get suitable suggestion..
I have seen Hive on Pub.dev many nonSql database.. but I want a relational database..
SQLite should work fine on Windows:
sqflite package
They have an example project that runs on Windows as well as iOS and Android.
Drift is the new version of Floor, it supports all platforms including Windows:
https://pub.dev/packages/drift
Actually, Floor works fine with windows too.
I've used it in many applications, but not in production mode.

problem with firestore & rtc engine in flutter

I am having a problem with some internet connection in my app.
The problem is that Cloud Firestore doesn't work when I add agora rtc engine to the dependencies alongside with Cloud Firestore. Everything works fine in debug mode, but in release mode, when I open my app to make a test, everything works except Google Cloud Firestore. It wont load/write any data like there is no internet connection. When I remove agora rtc engine from pubspec.yaml dependencies, Cloud Firestore works back. Any suggestions?

Flutter Without Emulator

I cannot install the Android Emulator in my working environment, therefore I wondered whether it is possible to code/learn Flutter without any mobile device (or emulator). For example, is it possible to run/test the code by using the browser?
There are two non-mobile options, both of which are currently in development stages but could be used for learning Flutter:
flutter-desktop-embedding, particularly the example which you can check out and flutter run with minimal setup, and then modify.
The Flutter for web technical preview.
Flutter Desktop Launcher for Mac OS/Linux, support hot reload via VS Code
GitHub Link: https://github.com/putraxor/flutter_desktop_launcher