PlugFox / flutter-plus

VS Code Extension for Flutter
https://marketplace.visualstudio.com/items?itemName=plugfox.flutter-plus
MIT License
14 stars 2 forks source link

Isolate Code Generator & UI Configurator #18

Open iBelow opened 2 months ago

iBelow commented 2 months ago

Is it possible to consider adding the following features?

Code Generator for Creating Isolates

Standard Isolate Templates

Generate template code for creating and running an isolate with minimal configuration. This could include code to create an Isolate, pass data through ports (ReceivePort and SendPort), and template error handlers.

Asynchronous Tasks or Function wrapper

Automatically generate (wrap) functions that run in an isolate, with the ability to pass and receive data.

File Separation

Automatically generate separate Dart files for the logic that runs in an isolate.

UI configurator

UI for configuring isolates in VSCode

A graphical interface where you can specify which data will be passed to the isolate, how it will be processed, and what data will be returned (if applicable). The configurator could generate the corresponding code based on the input data.

PlugFox commented 1 month ago

Yeap, it's possible to create some snippets for isolates. Next time, when I start work with that - I'll try to implement this.