How zubairehman/flutter_boilerplate_project works
This is a Flutter boilerplate application with a sample login and post-list experience, rather than a standalone post product. Its intended workflow starts at app launch and splash/routing, presents login or the home/post screen, and provides a layered structure for state, use cases, repositories, and local/network data. The README documents the broad architecture and capabilities; Dart implementation excerpts were not provided, so most implementation-level links remain unverified and are shown as dashed.
Main entry points: post_repository_impl.dart Post repository · post_store.dart Post state · my_app.dart App shell · login.dart Login screen
Components 27
App and navigation
- App entry
lib/main.dart - App shell
lib/presentation/my_app.dart - Route table
lib/utils/routes/routes.dart - Dependency injection
lib/di/service_locator.dart
Screens and state
- Login screen
lib/presentation/login/login.dart - Login state
lib/presentation/login/store/login_store.dart - Home screen
lib/presentation/home/home.dart - Post list
lib/presentation/post/post_list.dart - Post state
lib/presentation/post/store/post_store.dart - Language state
lib/presentation/home/store/language/language_store.dart - Theme state
lib/presentation/home/store/theme/theme_store.dart
Domain logic
- Post operations
lib/domain/usecase/post - Login operations
lib/domain/usecase/user - Post models
lib/domain/entity/post - Post repository contract
lib/domain/repository/post/post_repository.dart
Data and integrations
- Post repository
lib/data/repository/post/post_repository_impl.dart - Post API
lib/data/network/apis/posts/post_api.dart - Local post source
lib/data/local/datasources/post/post_datasource.dart - Sembast database
lib/core/data/local/sembast/sembast_client.dart - HTTP client
lib/data/network/rest_client.dart - Preferences
lib/data/sharedpref/shared_preference_helper.dart - Settings repository
lib/data/repository/setting/setting_repository_impl.dart
Shared capabilities
- Theme configuration
lib/constants/app_theme.dart - Localization
lib/utils/locale/app_localization.dart - Encryption
lib/core/data/local/encryption/xxtea.dart - Common widgets
lib/core/widgets
Other components
- App user
Connections 23
- App user → App entry: launches
- App entry → App shell: starts
- App shell → Route table: configures routes
README.md - App user → Login screen: uses login
- App user → Home screen: uses home
README.md - Login screen → Login state: uses state
- Login state → Login operations: invokes
- Home screen → Post list: shows posts
- Post list → Post state: uses state
- Post state → Post operations: invokes
- Post operations → Post repository contract: uses contract
- Post repository → Post repository contract: implements
- Post repository → Post API: uses API
- Post repository → Local post source: uses local source
- Local post source → Sembast database: stores posts
- Post API → HTTP client: sends requests
- Post state → Post models: holds data
- Theme state → Theme configuration: uses theme
- Language state → Localization: uses translations
- Settings repository → Preferences: persists settings
- Common widgets → Login screen: supports UI
- Common widgets → Post list: supports UI
- Dependency injection → App shell: provides dependencies