Krisenvorrat Inventar-App – Android-App (Kotlin) zur Verwaltung eines Krisenvorrats-Inventars
ItemFormViewModel: - Create-Modus (new article) and Edit-Modus (load existing by ID via SavedStateHandle navigation argument) - Form state with all ItemEntity fields as MutableStateFlow - Validation: name required, quantity > 0, category and location required - Save function (insert for create, update for edit) - Loads categories and locations for dropdown selection ItemFormScreen: - OutlinedTextField for name, quantity, unit, price, kcal/100g, min stock, notes - ExposedDropdownMenuBox for category and location selection - Material 3 DatePickerDialog for expiry date (MHD) - Inline validation error display per field - Save button in TopAppBar, back navigation on successful save - UUID generation for new articles Tests: - 18 unit tests covering create mode, edit mode, field updates, validation (all required fields), and save behavior (insert vs update) Closes #27 |
||
|---|---|---|
| .github | ||
| .vscode | ||
| Anforderungen | ||
| app | ||
| gradle | ||
| memories/repo | ||
| .gitignore | ||
| build.gradle.kts | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| settings.gradle.kts | ||