PFM_PAYNET is a project designed to address the Personal Financial Management (PFM) challenge, aiming to leverage access to various financial data (CASA, term deposits, credit cards, loans, etc.) to create more data-driven, customer-tailored financial solutions. This project uses FVM (Flutter Version Manager) to manage the Flutter SDK version, specifically Flutter version 3.24.3.
Before setting up the project, make sure you have the following tools installed:
- FVM: Flutter Version Manager
- Flutter (via FVM)
- Xcode (for iOS development)
- Android Studio (or other Android IDE with necessary SDKs)
FVM is a tool for managing multiple Flutter versions. It allows you to ensure that every contributor uses the same version of Flutter.
brew tap leoafarias/fvm
brew install fvmdart pub global activate fvmOnce FVM is installed, navigate to the root of the project directory and run:
fvm install 3.24.3This will install Flutter version 3.24.3 and link it to the project.
To ensure the project uses the correct version of Flutter, run:
fvm use 3.24.3This command will create a .fvm directory and set the correct version of Flutter for the project.
Once FVM has linked the correct version, you can verify the installation and the version being used by running:
fvm flutter doctorThis will check for any missing dependencies.
After setting up FVM and Flutter, install the project dependencies by running:
fvm flutter pub getThis will fetch all the packages listed in pubspec.yaml.
To run the app on an Android device/emulator, execute the following command:
fvm flutter runTo run the app on an iOS device or simulator, execute:
fvm flutter run --iosNote: Make sure you have Xcode set up properly for iOS development. You can check this by running flutter doctor.
To build an APK for Android, run the following command:
fvm flutter build apkThis will generate a release APK under the build/app/outputs/flutter-apk directory.
To build the app for iOS, run:
fvm flutter build iosThis will generate an iOS build that can be deployed to a device or submitted to the App Store.
If you want to clean the project (e.g., to remove any cached data or build artifacts), run:
fvm flutter cleanThis will remove the build/ folder, .dart_tool/, and other generated files.
fvm flutter doctor: Check Flutter installation and dependencies.fvm flutter pub get: Install dependencies.fvm flutter run: Run the app.fvm flutter build apk: Build the Android APK.fvm flutter build ios: Build the iOS app.fvm flutter clean: Clean the project.
Feel free to fork the project and submit pull requests. Please ensure that you follow the established version of Flutter (v3.24.3) for consistency.