Skip to content

Migrate project to use clean architechture #29

@shatanikmahanty

Description

@shatanikmahanty

To use clean architechture to better represent ocy's coding values and standards.

Part of OCY organizational restructure

Tasks:

  • Maybe use flutter_bloc for state management (To be investigated)
  • Use app wide error reporting (Online reporting firebase crashlytics)
  • Use hive based solutions instead of shared_prefs
  • DRY refactorings
  • Directory restructuring
  • Use classes for widgets instead of functions
  • Remove unnecessary stateful widgets
  • Prepare deep linking module for better suitability with mobile platforms
  • Improve auth module to use listener based arch
  • Use auto router #28

Directory restructuring guide:

🧺 - Barrel file containing exports
📄 - Normal file
📁 - Directory

   mindmap
      root((📁lib))
        📁configurations
          📁 router
          📁 theme
          🧺 configurations.dart
          📄 constants.dart
        📁features
          📁 Feature1
                 📁blocs
                 📁data
                      📁repos
                      📁models
                      📁enums
                 📁presentation
                      📁pages
                      📄otherwidgets.dart
                 🧺 feature1.dart 
        📁utils
          📁mixins
          📁extensions
          🧺utils.dart
       📄 main.dart
       📄 app_builder.dart 
Loading

Most of these changes to be auto included in new flutter projects through ocy flutter copier template

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions