Support multiple devices
This is a feature request.
I would like to be able to work with 2 devices connected (linux desktop & emulator android mobile), and have both of them hot reloaded. Is that possible? Right now, I can open 2 devices, but I need to flutter.dev.detach, select another device, then flutter.attach and flutter.run, and it doesn't work always (device is slow to react, but I sometimes it cannot be reattached to).
I'm wondering if I misunderstood something. How are coc-flutter users doing when working on responsive layouts ?
Supporting this would be nice. But personally I test responsive layouts by building for macos or web and resizing the window on the fly
Adding to Kavantix answer I have been using DevicePreview and WidgetBook as well as golden tests with different screen sizes.
It would be nice to preview in Android and iOS simultaneously, but remember that you can also achieve the same by splitting your window with tmux and simply having two Neovim instances, right? But file changes would only be picked up by one device, so it's not optimal.
In my case, I open several neovim window for same workspace. For example, this is my tmuxinator configuration for my flutter app development.
windows:
- frontend-A:
layout: main-vertical
panes:
- cd ./mobile_app/ && vim .
- frontend-B:
layout: main-vertical
panes:
- cd ./mobile_app/ && vim .
If you run command tmuxinator start -p <tmuxinator-file-path>, you can see windows named frontend-A, frontend-B.
In window frontend-A, execute command :FlutterDevices and select android device
In window frontend-B, execute command :FlutterDevices and select ios device
After that, you can see multiple devices are running for same codebase.
In this way, I am developing chatting app with less effort. I wish this could be helpful.