This Flutter project is a demonstration of a VR Real Estate application. It includes features such as user authentication, device management, and estate browsing.
The main project structure is as follows:
vrrealstatedemo/
├── android/
├── ios/
├── lib/
│ ├── screens/
│ │ ├── DevicesPage.dart
│ │ ├── EstatesPage.dart
│ │ ├── LoginPage.dart
│ │ └── ScenePage.dart
| ├── utils/
│ │ ├── Progressbar.dart
│ │ └── SocketManager.dart
│ └── main.dart
├── assets/
│ └── app-icon.png
├── pubspec.yaml
├── README.md
└── .env
Before you begin, ensure you have met the following requirements:
- Flutter SDK (latest stable version)
- Dart SDK
- Android Studio / Xcode (for iOS development)
- An IDE (e.g., VS Code, IntelliJ IDEA)
-
Download the Flutter SDK from the official Flutter website.
-
Extract the downloaded file in the desired location, e.g.:
cd ~/development unzip ~/Downloads/flutter_macos_<version>-stable.zip
-
Add Flutter to your path:
export PATH="$PATH:`pwd`/flutter/bin"
-
Run
flutter doctorto check for any additional dependencies you may need to install.
- Download the Flutter SDK from the official Flutter website.
- Extract the zip file and place the contained
flutterfolder in the desired installation location for the Flutter SDK (e.g.,C:\src\flutter). - Update your path:
- From the Start search bar, type 'env' and select "Edit environment variables for your account"
- Under "User variables" check if there is an entry called "Path"
- If the entry exists, append the full path to
flutter\binusing;as a separator from existing values. - If the entry doesn't exist, create a new user variable named
Pathwith the full path toflutter\binas its value.
- Run
flutter doctorto check for any additional dependencies you may need to install.
-
Clone the repository:
git clone https://github.com/wewerlive/vrrealstatedemo-app.git cd vrrealstatedemo-app -
Install dependencies:
flutter pub get
-
Set up environment variables:
- Create a
.envfile in the root directory of the project - Add necessary environment variables (e.g., API endpoints, keys)
- Create a
To run the project, use the following command:
flutter runThis will start the app on your connected device or emulator.
Here are some common issues you might encounter and how to resolve them:
-
"flutter command not found" error
- Ensure Flutter is correctly added to your PATH.
- Try restarting your terminal or IDE.
-
Build fails due to missing dependencies
- Run
flutter pub getto fetch all dependencies.
- Run
-
Android SDK not found
- Ensure Android Studio is installed and the Android SDK is properly set up.
- Run
flutter doctorto check for any issues with Android setup.
-
iOS build fails
- Ensure Xcode is installed (for macOS users).
- Run
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developerto set the correct Xcode path.
-
Socket.IO client connection issues
- Check your internet connection.
- Verify that the Socket.IO server URL in the
.envfile is correct. - Ensure the server is running and accessible.
- Check for any CORS issues if connecting from a web client.
If you encounter any other issues, please check the Flutter documentation or open an issue in the project repository.