Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kennethnym/subliminal
Subliminal is a Sublime Text 4 plugin that adds support for Dart/Flutter projects
https://github.com/kennethnym/subliminal
dart flutter plugin sublime-text sublime-text-4 sublime-text-plugin
Last synced: 16 days ago
JSON representation
Subliminal is a Sublime Text 4 plugin that adds support for Dart/Flutter projects
- Host: GitHub
- URL: https://github.com/kennethnym/subliminal
- Owner: kennethnym
- License: mit
- Created: 2021-12-12T23:02:13.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-23T22:06:09.000Z (almost 3 years ago)
- Last Synced: 2024-10-15T18:41:10.975Z (2 months ago)
- Topics: dart, flutter, plugin, sublime-text, sublime-text-4, sublime-text-plugin
- Language: Python
- Homepage:
- Size: 10.6 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Subliminal [Work in progress!]
A Sublime Text 4 plugin that adds support for Dart/Flutter projects. This plugin adds commands for working with Dart/Flutter projects,
and **does not** provide syntax/autocompletion support.## Installation
1. If you haven't already, please install [LSP](https://lsp.sublimetext.io/language_servers/) and [LSP-Dart](https://github.com/sublimelsp/LSP-Dart) first. They will provide autocompletion for your Dart code.
2. This plugin will try to detect the path to the Flutter and Dart SDK. To define the path manually, define `FLUTTER_ROOT` (for Flutter projects) and/or `DART_SDK` (for Dart projects) in the settings file for `LSP-Dart`, under the `"env"` key.
- `FLUTTER_ROOT` should be the path to the Flutter SDK
- `DART_SDK` should be the path to the Dart SDK
- If you have per-project settings, define them in the project settings file instead.
3. Install this plugin through Package Control.## Integration with Sublime Text's build system.
This plugin allows Dart/Flutter projects to be run through Sublime Text's build system.
### Running Dart projects
To create a build system for running Dart projects, go to `Tools -> Build system -> New build system...`. A new file will be created. Name it `dart.sublime-build`, then add the following:
### Running Flutter projects
To create a build system for running Flutter projects, go to `Tools -> Build system -> New build system...`. A new file will be created. Name it `flutter.sublime-build`, then add the following:
### Per-project build system
To have different build systems for different Sublime projects, instead of making a new build system through the menu, add the above JSON objects
to the list under the `"build_systems"` key, in the `.sublime-project` file:```json
{
"folders": [/*...*/],
"build_systems":
[
/* Add build system JSON config here */
{
"name": "Run my project"
"selector": "source.dart"
"target": "flutter_run",
"cancel": {
"kill": true,
},
// additional arguments passed to 'flutter run' as a list of strings
"args": ["--no-sound-null-safety"],
}
]
}
```## To-do
- [ ] Dart/Flutter commands
- [x] `pub get`
- [x] `pub add`
- [x] `fluter clean`
- [x] `flutter run`
- [x] `dart run`
- [x] Hot reload/Restart
- [x] Open ios/android folder in Xcode/Android Studio
- [x] Select device
- [x] Add dependency