smart-home-insurance-discounts-app is a demo app using google-nest public APIs to enable home insurance providers give discounts to home owners if they have certain smart devices at home.
This is not an officially supported Google product.
To setup flutter app on android studio:
- Run flutter doctor to check if flutter is installed in your laptop. If not, please refer to https://flutter.dev/docs/get-started/install for installation instructions.
- Go to Find Action -> plugins -> installed. if installed shows dart and flutter then continue to next step, else go to Find Action -> plugins -> marketplace and search for flutter and add the plugin. If prompted to install dart plugin as well, accept. Otherwise search for dart plugin and install that as well.
- Clone the repository and open the 'home_insurance_app'/'sdk' directory from android studio not the root directory
- Go to settings -> flutter and add the path to flutter SDK if not already present.
- If prompted to run 'flutter pub get' accept, else go to terminal in the IDE and run flutter pub get.
- Connect device device to your laptop via USB. It should show up in the top bar.
- Download google-services.json (firebase access credentials) from the firebase console project page and add it to home_insurance_app/android/app.
- Once connected to a devices go to run tab and select run.
Common issues faced:
- Flutter plugin and installing flutter SDK are different and both need to be setup.
- Run flutter pub get after editing pubspec.yaml file to load the changes.