-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More Flutter commands #10
Comments
Thanks for the kind words. I don't see PRs are always welcome, though. |
Thanks a lot! |
What about Or perhaps better, provide some hook point so we can customize commands for running before Thanks for the awesome package! |
For those who have the same needs, my flutter package config is: (defun my-flutter-build-run-watch ()
"Run `flutter pub run build_runner watch`."
(interactive)
(flutter--from-project-root
(let* ((buffer-name "*Flutter-build-runner-watch*")
(buffer (flutter--get-buffer-create buffer-name))
(alive (comint-check-proc buffer-name)))
(unless alive
(progn (apply #'make-comint-in-buffer "Flutter-build-runner-watch" buffer (flutter-build-command) nil '("pub" "run" "build_runner" "watch"))
(display-buffer buffer))))))
(defun my-flutter-run-or-hot-reload ()
"Run 'flutter run' or perform a hot reload, and open the *Flutter* buffer."
(interactive)
(my-flutter-build-run-watch)
(flutter-run-or-hot-reload)
(switch-to-buffer-other-window "*Flutter*"))
This opens a process buffer calling |
Hi, thanks for the incredible job here!
Been using the package for a couple of days now. Just saw the package lacking some essential commands (in order to keep us in the Emacs only xD) (and since I'm a noob in writin Lisp thought I just come here and say what I think instead of making a Pull request).
Just the absence of a functions like: flutter-create is a big deal. (and pub)
It would be nice to implement such commands in here too.
The text was updated successfully, but these errors were encountered: