Lohnify is a Flutter-based mobile application designed to help users in Switzerland calculate their net salary by considering various deductions including social security contributions, pension funds, and cantonal tax rates.
- Gross to net salary calculation
- Support for all 26 Swiss cantons with their specific tax rates
- Social security deductions (AHV, IV, EO, ALV)
- Pension fund contributions
- Church tax calculations
- 13th month salary support
- Dark/Light theme support
- Multilingual support (German/English)
- Automatic canton rates updates
The app follows a service-based architecture with:
- Services layer (
services/) - Handles data fetching and business logic - Models layer (
models/) - Contains data structures and calculation logic - UI layer (
screens/) - Manages user interface and interactions
-
Canton Rates Service
- Fetches current canton tax rates from API
- Implements local caching with SharedPreferences
- Falls back to default rates if network unavailable
-
Contribution Rates
- Manages social security contribution rates
- Handles canton-specific tax rates
- Provides default values for offline use
-
Salary Calculator
- Processes gross salary input
- Applies all relevant deductions
- Calculates net salary and yearly totals
- Ensure Flutter is installed and configured:
flutter doctor- Clone the repository:
git clone https://github.com/yourusername/lohnify.git- Install dependencies:
flutter pub get- Run the app:
flutter run