Skip to content
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

Support multiple devices #159

Open
AdrienLemaire opened this issue Aug 18, 2022 · 4 comments
Open

Support multiple devices #159

AdrienLemaire opened this issue Aug 18, 2022 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@AdrienLemaire
Copy link

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 ?

@Kavantix Kavantix added enhancement New feature or request good first issue Good for newcomers labels Sep 8, 2022
@Kavantix
Copy link
Collaborator

Kavantix commented Sep 8, 2022

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

@dkbast
Copy link

dkbast commented Mar 27, 2023

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

@martin-braun
Copy link

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.

@malkoG
Copy link

malkoG commented Jun 16, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants