mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-28 17:08:29 +01:00
Closes #930. The validateLanguage stub in AddExerciseProvider was making the API call but ignoring the response and always returning false. This wires it up properly: the method now returns null on success or the server's error message on a language mismatch (caught from the 400 WgerHttpException). The stepper's onStepContinue is now async-aware for steps 2 (Description) and 3 (Translation) — it calls validateLanguage after form validation passes, blocks navigation, and displays the error inline if the check fails. Mocks regenerated to reflect the return type change from Future<bool> to Future<String?>.