Skip to content

This repository contains an VSCode extension that brings support for working with clean architecture with Flutter.

License

Notifications You must be signed in to change notification settings

ChrisElliotUK/flutter-clean-architecture

 
 

Repository files navigation

Flutter Clean Architecture README

Introduction

This package is a fork of Develapps clean architecture which was created by Felipe Gadea Llopis and sponsored by Develapps.

The fork is developed by ChrisElliotUK.

This is an extension for developing mobile software with clean architecture focused on flutter. It works with others, it is simply a software architecture. With this extension we make easy to work with clean architecture and we help developers to develope flutter projects focused on clean architecture.

Compile and Package

Compile your code: npm run compile Then build the backage: vsce package

Features

This package has two functionalities, auto generates project structure and auto generates a custom feature structure.

  • With auto generating project structure, the extension creates the following folders and files structure:

      ...
      lib/
          api/
          common/
              app_colors.dart
              app_routes.dart
              app_text_styles.dart
              app_themes.dart
              image_resources.dart
          core/
              error/
              platform/
              usecase/
          di/
          features/
              sample/
                  data/
                      datasources/
                      models/
                      repositories/
                  domain/
                      entities/
                      repositories/
                      usecases/
                  presentation/
                      bloc/
                      screens/
                          sample_screen.dart
                      widgets/
      ...
      And the same for test directoriy.
    
  • With custom feature generation the following folders and files structure is generates on features/ dir with a name givem by the user:

      ...
      your_feature_name/
          data/
              datasources/
              models/
              repositories/
          domain/
              entities/
              repositories/
              usecases/
          presentation/
              bloc/
              screen/
                  your_feature_name_screen.dart
              widgets/
      ...
    

The extension works also on command paletter but the easy way for using it is right clic on project directories.

Requirements

It is recomendable to have installed flutter_bloc package

Release Notes

This extensions is under development and we will read your suggestions.

1.0.2

Update pages to screens. Change the generated widget to a stateless widget.

1.0.0

First version of Develapps clean architecture.

About

This repository contains an VSCode extension that brings support for working with clean architecture with Flutter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%