Common Errors
- Check all values in the firebase config collections 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 Collection
- 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.
- Also you can check in Change Langugae tab
Example : const Locale('fr', 'CA')
- If any error occur regarding null check whether you have add collection in firebase or not.
- Check all Required collection is Firebase Collection
- 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 Collection -> Create config in Firestore Database :
- Check whether you have give valid name in firebase and also in usage_control_model.dart and user_setting_model.dart model it should be same as you given in firebase.