Common Errors
- Check all values in the firebase config collection and in firebase_config.dart it should be the same as in the firebase config value
- Also check data type which we have mention in document along with config data name in Firebase Rules
- To set default Language, you need to set a value on splash_controller if any language stored is local then get that value from local if not then set a default index value from JSON according to your requirement.
- Now Go to Splash Controller which is in lib -> controllers -> auth_controller -> splash_controller
- In that onReady Function set default value if no data store in local storage
- If there is no data saved in storage we have set "en" you need to set your default language code.
- Now in main.dart which is in lib -> main.dart just change locale and fallbackLocale with your default requirement language which is in french so paste the below the line in locale and fallbackLocale.
Example : const Locale('fr', 'CA')
- Firstly go to firebase in firestore databse check permission is give for add data or not in Rules .
- Now in your project go to chat_layout_controller check all codes are up-to-date with latest code.
- Check whether you textbox value are going in api and check what response is coming.
- Chat history is only for logged user those user who login in app can access chat history
- And also isChatHistory value is true in firebase if it is false update value by true.
- Check all datatype in firebase while add data in firestore database in config collection
- We have provide all config fields and datatype.
- For Config you can check in Firebase Rules -> Create Env Config in Firestore Database : 6. no point
- Check whether you have give valid name in firebase and also in firebase_config.dart model it should be same as you given in firebase.
- Check firebase data value name in all the dart file where ever data came from firebase like config data came from firebase, chat history, chat layout screen.
- pod 'GoogleMLKit/TextRecognitionChinese', '~> 4.0.0'
- pod 'GoogleMLKit/TextRecognitionDevanagari', '~> 4.0.0'
- pod 'GoogleMLKit/TextRecognitionJapanese', '~> 4.0.0'
- pod 'GoogleMLKit/TextRecognitionKorean', '~> 4.0.0'
- Try to upgrade your java version 1.8 or 11 as per your system requirement and also try to upgrade your gradle version
- Try to Upgrade latest version of flutter with 3.10.2 and also take the latest version of all the plugin and remove new_version plugin and flutter_widget_from_html plugin from pubspec.yaml and run command "flutter pub get" (Firstly try to update screenshot, share_plus, webview_flutter plugin) and run command "flutter pub get"
- Also update your code with latest code from codecanyon