How miguelcovarrubiasdaiz/flutter-structure works
Flutter Template is a feature-first Flutter application starter. Its example user flow begins at the app entry point, initializes shared services, and routes through a login guard into a bottom-tab shell; the Posts tab demonstrates a network-to-domain-to-UI feature. The graph also retains documented shared UI, configuration, localization, and cross-cutting error/network capabilities. Relationships are based on README statements; implementation details for most Dart modules were not sampled.
Main entry points: scaffold_with_nav_bar.dart Tab shell · app_router.dart Router and routes · app.dart App root · posts_providers.dart Posts providers
Components 26
App and navigation
- App entry
lib/main.dart - Bootstrap
lib/bootstrap.dart - App root
lib/app/app.dart - Router and routes
lib/app/router/app_router.dart
Feature experiences
- Login screen
lib/features/auth/presentation/login_page.dart - Auth controller
lib/features/auth/presentation/auth_controller.dart - Tab shell
lib/features/shell/presentation/scaffold_with_nav_bar.dart - Home dashboard
lib/features/home/presentation/home_page.dart - Profile
lib/features/profile/presentation/profile_page.dart - Counter example
lib/features/counter/presentation/counter_controller.dart - Components gallery
lib/features/showcase/presentation/components_gallery_page.dart
Posts example
- Posts pages
lib/features/posts/presentation/pages/posts_page.dart - Post detail
lib/features/posts/presentation/pages/post_detail_page.dart - Posts providers
lib/features/posts/presentation/providers/posts_providers.dart - Get posts use case
lib/features/posts/domain/usecases/get_posts.dart - Get post use case
lib/features/posts/domain/usecases/get_post.dart - Post repository
lib/features/posts/domain/repositories/post_repository.dart - Repository implementation
lib/features/posts/data/repositories/post_repository_impl.dart - Remote data source
lib/features/posts/data/datasources/post_remote_data_source.dart
Shared foundations
- Dio networking
lib/core/network/dio_client.dart - App configuration
lib/core/config/app_config.dart - Typed errors and results
lib/core/error/failure.dart - Shared widget kit
lib/core/widgets/widgets.dart - Material theming
lib/core/theme/app_theme.dart
Localization
- English and Spanish
lib/l10n/arb/app_en.arb
Other components
- User
Connections 27
- User → App entry: opens app
README.md - App entry → Bootstrap: starts
README.md - Bootstrap → App root: initializes
- App root → Router and routes: uses routing
- Router and routes → Login screen: redirects to login
README.md - Router and routes → Auth controller: watches auth
README.md - Login screen → Auth controller: signs in
README.md - Router and routes → Tab shell: routes to tabs
README.md - Tab shell → Home dashboard: shows tab
- Tab shell → Profile: shows tab
- Tab shell → Posts pages: shows tab
- Tab shell → Counter example: opens example
- Home dashboard → Components gallery: opens gallery
README.md - Posts pages → Posts providers: uses state
- Post detail → Posts providers: uses state
- Posts providers → Get posts use case: invokes
- Posts providers → Get post use case: invokes
- Get posts use case → Post repository: requests posts
README.md - Get post use case → Post repository: requests post
README.md - Repository implementation → Post repository: implements
README.md - Repository implementation → Remote data source: uses data source
- Remote data source → Dio networking: sends requests
- Repository implementation → Typed errors and results: returns typed result
README.md - App configuration → User: accepts flavor input
README.md - App root → Material theming: applies theme
- Shared widget kit → Components gallery: demonstrated in
README.md - English and Spanish → App root: localizes app