Directory

The recommended directory structure would be like this

  1. sample_page
  2. -- action.dart
  3. -- page.dart
  4. -- view.dart
  5. -- effect.dart
  6. -- reducer.dart
  7. -- state.dart
  8. components
  9. sample_component
  10. -- action.dart
  11. -- component.dart
  12. -- view.dart
  13. -- effect.dart
  14. -- reducer.dart
  15. -- state.dart

The upper layer is responsible for assembly and the lower layer is responsible for implementation.