Prerequisites
Before installing Numix, ensure you have the following tools installed on your system:Flutter SDK
Numix requires Flutter SDK version 3.6.0 or higher.Check Flutter Installation
Verify if Flutter is already installed on your system:If Flutter is installed, you should see output similar to:
Install Flutter (if needed)
If Flutter is not installed or your version is below 3.6.0, follow the official installation guide:
macOS
Install Flutter on macOS
Windows
Install Flutter on Windows
Linux
Install Flutter on Linux
You’ll need either Android Studio (for Android development) or Xcode (for iOS development) installed and configured. Run
flutter doctor to verify all required dependencies.System Requirements
- Android
- iOS
- Android SDK: API Level 21 (Android 5.0) or higher
- Android Studio: Latest version recommended
- Java Development Kit (JDK): Version 11 or higher
Installing Numix
Once your Flutter environment is set up, follow these steps to install Numix:Clone the Repository
Clone the Numix repository from your source control:Replace
<repository-url> with your actual repository URL.Install Dependencies
Install all required Flutter packages using pub:This command will download and install all dependencies specified in
pubspec.yaml:- provider (^6.1.5): State management
- math_expressions (3.0.0): Precise mathematical calculations
- shared_preferences (2.3.2): Local data persistence
- cupertino_icons (^1.0.8): iOS-style icons
Project Dependencies
Here’s a detailed breakdown of Numix’s dependencies and their purposes:Core Dependencies
pubspec.yaml
provider - State Management
provider - State Management
The
provider package is Numix’s state management solution. It enables:- Reactive UI updates when data changes
- Dependency injection for providers
- Efficient widget rebuilding (only affected widgets update)
- Clean separation between UI and business logic
ChangeNotifierProvider to expose calculation providers throughout the widget tree.math_expressions - Calculation Engine
math_expressions - Calculation Engine
The
math_expressions library ensures mathematical precision by:- Preventing floating-point arithmetic errors
- Providing safe expression evaluation
- Supporting complex mathematical operations
- Offering predictable, accurate results
shared_preferences - Data Persistence
shared_preferences - Data Persistence
Development Dependencies
For testing and development, Numix includes:pubspec.yaml
Verify Your Installation
After completing the installation steps, verify everything is working:Check Connected Devices
List available devices (emulators or physical devices):You should see at least one device available.
Troubleshooting
Flutter command not found
Flutter command not found
If you receive a “command not found” error:Windows: Add Flutter bin directory to System Environment Variables PATH.
- Ensure Flutter is added to your PATH environment variable
- Restart your terminal/command prompt
- Run
flutter doctorto verify the installation
.zshrc or .bashrc:Dependency resolution errors
Dependency resolution errors
If you encounter dependency resolution errors:
- Delete the
pubspec.lockfile - Delete the
.dart_tooldirectory - Run
flutter clean - Run
flutter pub getagain
Gradle build errors (Android)
Gradle build errors (Android)
If you encounter Gradle build errors:
- Ensure you have the correct JDK version (11 or higher)
- Clear Gradle cache:
- Rebuild the project:
CocoaPods errors (iOS)
CocoaPods errors (iOS)
If you encounter CocoaPods errors on iOS:
- Update CocoaPods:
- Clean and reinstall pods:
Next Steps
With Numix successfully installed, you’re ready to run the application. Continue to the Quickstart Guide to launch Numix and explore its features.Quickstart Guide
Learn how to run Numix and start using the calculators