Prerequisites
Before installing Vitu, ensure you have the following installed:Install Flutter SDK
Download and install Flutter SDK from flutter.devVitu requires Flutter SDK with Dart ^3.10.8Verify your installation:
Set up platform tools
Install the required tools for your target platform:For Android:
- Android Studio with Android SDK
- Android SDK Platform-Tools
- Android Emulator or physical device
- Xcode 12.0 or later
- CocoaPods
- iOS Simulator or physical device
- Windows: Visual Studio 2022 with C++ tools
- macOS: Xcode command line tools
- Linux: clang, cmake, ninja-build, libgtk-3-dev
Install Vitu
Install dependencies
Install all Flutter package dependencies:This will install the following packages:
hiveandhive_flutter- Local NoSQL databasegoogle_generative_ai- Gemini AI integrationimage_picker- Camera and gallery accessgeolocator- Location servicessensors_plus- Device sensors (accelerometer)fl_chart- Data visualizationpath_provider- File system pathsshared_preferences- Simple key-value storagescreen_state- Screen state detection
Configure platform permissions
The app requires specific permissions to function properly. These are already configured in the source files.Android permissions (in iOS permissions (in Camera permissions are handled automatically by the
android/app/src/main/AndroidManifest.xml):ios/Runner/Info.plist):image_picker plugin.Set up Gemini API key
- Get a Gemini API key from Google AI Studio
- See the Configuration page for secure setup options
lib/main.dart:489 (not recommended for production):Platform-Specific Setup
Android
Vitu uses Android Gradle Plugin 8+ and requires:- Minimum SDK: API 21 (Android 5.0)
- Target SDK: Latest stable
iOS
For iOS development:Desktop Platforms
Vitu supports Windows, macOS, and Linux. Desktop builds work out of the box once Flutter desktop is enabled:Some features like step counting and location tracking may have limited functionality on desktop platforms.