| .. | ||
| android | ||
| ios | ||
| lib | ||
| linux | ||
| macos | ||
| test | ||
| web | ||
| windows | ||
| .gitignore | ||
| analysis_options.yaml | ||
| l10n.yaml | ||
| pubspec.yaml | ||
| README.md | ||
mosenioring
Flutter app scaffolded with clean architecture layers, Riverpod state management, and a login flow ready to integrate with a Swagger/OpenAPI backend.
Architecture
lib/src/app: app shell + router (GoRouter)lib/src/di: dependency providerslib/src/core: config + networkinglib/src/features/auth: auth domain/data/presentationlib/src/features/home: home screen
Configuration
Update lib/src/di/providers.dart with your API base URL.
Swagger/OpenAPI integration
When the spec is ready, generate a client and replace ApiClient usage:
- Save your spec (e.g.,
openapi.yaml) or point to its URL. - Generate a Dart client (OpenAPI Generator or Swagger Codegen).
- Swap
AuthRemoteDataSourceto call the generated client.
Running
flutter pub get
flutter run