One Pass is now set up as a clean-architecture Flutter starter inspired by the
structure used in OnoPUNPUN/dev-blogs.
- Feature-first folder structure
core/for shared app concernsdata / domain / presentationlayer separationflutter_blocfor presentation stateget_itfor dependency injectiongo_routerfor app routingdiofor HTTP client setupshared_preferencesandflutter_secure_storagefor persistenceconnectivity_plusandinternet_connection_checker_plusfor network checksloggerfor structured loggingbloc_testandmocktailfor testability
lib/
core/
constants/
di/
error/
network/
router/
storage/
theme/
usecase/
features/
counter/
data/
domain/
presentation/
src/
app.dart
bootstrap.dart
The app includes a persisted counter feature that demonstrates:
- local data source
- repository abstraction
- use cases
- BLoC state management
- dependency injection
- routing into a real page
This gives you a working vertical slice that can be copied when you add real features like auth, profile, sync, or pass management.
flutter pub get
flutter analyze
flutter test
flutter run