- Added ParentRegisterStep4Screen for capturing motivation and CGU acceptance. - Integrated custom checkbox and text field widgets for better UI. - Implemented modal dialog for displaying CGU text. - Created ParentRegisterStep5Screen for summarizing registration data. - Added functionality to display parent and child details with edit options. - Included confirmation modal upon submission of the registration request.
70 lines
2.4 KiB
Markdown
70 lines
2.4 KiB
Markdown
# petitspas
|
||
|
||
A new Flutter project.
|
||
|
||
## Getting Started
|
||
|
||
This project is a starting point for a Flutter application.
|
||
|
||
A few resources to get you started if this is your first Flutter project:
|
||
|
||
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
|
||
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
|
||
|
||
For help getting started with Flutter development, view the
|
||
[online documentation](https://docs.flutter.dev/), which offers tutorials,
|
||
samples, guidance on mobile development, and a full API reference.
|
||
|
||
### Workflow Git
|
||
|
||
Le projet suit un **Git Flow simplifié** avec 3 branches principales :
|
||
|
||
- `main` : version stable et déployée en production
|
||
- `develop` : version intégrée et testée avant passage en production
|
||
- `feature/*`, `fix/*`, `hotfix/*` : branches spécifiques au développement
|
||
|
||
**Cycle standard :**
|
||
```bash
|
||
# Création d’une feature
|
||
git checkout develop
|
||
git checkout -b feature/FRONT-021-zone-enfants
|
||
|
||
# Développement
|
||
git add .
|
||
git commit -m "FRONT-021: Widget zone enfants"
|
||
git push origin feature/FRONT-021-zone-enfants
|
||
|
||
# Pull Request => vers develop
|
||
# Merge → suppression de la branche
|
||
Voir CONTRIBUTING.md pour les conventions détaillées.
|
||
```
|
||
### Structure du projet Flutter
|
||
|
||
Le projet suit une architecture modulaire MVC simplifiée compatible avec Provider (ou Riverpod léger).
|
||
|
||
```plaintext
|
||
lib/
|
||
├── main.dart # Point d’entrée
|
||
├── routes/ # go_router ou auto_route
|
||
├── models/ # Classes de données (User, Parent, Enfant, etc.)
|
||
├── services/ # Requêtes HTTP, AuthService, StorageService
|
||
├── utils/ # Helpers, validateurs, formatteurs
|
||
├── widgets/ # Composants UI réutilisables
|
||
├── screens/ # Pages par grande fonctionnalité
|
||
│ ├── auth/ # Connexion, inscription, mot de passe oublié
|
||
│ ├── registration/ # Création parent / assistante maternelle
|
||
│ ├── dashboard/ # Tableau de bord parent / AM / gestionnaire
|
||
│ ├── profile/ # Gestion des infos utilisateur
|
||
│ └── children/ # Fiches enfants
|
||
```
|
||
|
||
### Architecture choisie
|
||
🟩 Type : MVC Modulaire avec Provider (ou Riverpod léger)
|
||
|
||
Avantages :
|
||
|
||
- Simple à prendre en main
|
||
- Rapide à structurer
|
||
- Permet la séparation des features
|
||
- Adaptée à un projet Flutter Web PWA
|