Skip to content

A plugin for Flutter developers at Friflex, an IT company, designed for VSCode.

License

Notifications You must be signed in to change notification settings

smmarty/flutter-friflex-vscode

Repository files navigation

Friflex Flutter Utils

A plugin for Flutter developers at Friflex, an IT company, designed for VSCode.

Features

1. Create features folders

  • Creates feature folders for Flutter projects following a predefined structure based on Clean Architecture principles.
  • Automatically generates:
    • Repository files (main and mock) in data/repository.
    • DTO files in data/dto.
    • Interface files in domain/repository.
    • Screen classes in presentation/screens.

After executing the command, the .friflex_config folder will be created in your project.This folder will contain the\template. You can change it for your own purposes.

Folder Structure Example

feature_name/
├── data/
│   ├── repository/
│   │   ├── feature_name_repository.dart
│   │   └── feature_name_repository_mock.dart
├── domain/
│   ├── state/
│   ├── entity/
│   └── repository/
│       └── i_feature_name_repository.dart
└── presentation/
    ├── components/
    └── screens/

This plugin simplifies the process of scaffolding feature modules for Flutter developers using VSCode.

2. Create the Entity, StatelessWidget, and StatefulWidget classes according to your file name.

Context menu, if the current file editor is .dart.

Friflex/
  ├── Create Entity
  ├── Create StatelessWidget
  └── Create StatefulWidget

Settings

You can change it in the plugin settings:

  1. Whether to add the prefix "I" to the repository interface, by default TRUE.
  2. Use the equatable library when creating an Entity, by default TRUE.

About

A plugin for Flutter developers at Friflex, an IT company, designed for VSCode.

Resources

License

Stars

Watchers

Forks

Packages

No packages published