coc-flutter icon indicating copy to clipboard operation
coc-flutter copied to clipboard

Support multiple devices

Open AdrienLemaire opened this issue 3 years ago • 4 comments

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 ?

AdrienLemaire avatar Aug 18 '22 15:08 AdrienLemaire

Supporting this would be nice. But personally I test responsive layouts by building for macos or web and resizing the window on the fly

Kavantix avatar Sep 08 '22 17:09 Kavantix

Adding to Kavantix answer I have been using DevicePreview and WidgetBook as well as golden tests with different screen sizes.

dkbast avatar Mar 27 '23 11:03 dkbast

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.

martin-braun avatar Apr 30 '23 16:04 martin-braun

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.

malkoG avatar Jun 16 '23 12:06 malkoG