flutter / flutter-intellij

Flutter Plugin for IntelliJ
https://flutter.dev/using-ide
BSD 3-Clause "New" or "Revised" License
1.98k stars 319 forks source link

Provide a simulated browser address bar to interact on non-web platforms. #5468

Open xuanswe opened 3 years ago

xuanswe commented 3 years ago

Currently, flutter supports web and deeplink. However, hot-reload is not supported on web platform.

According to @Hixie, https://github.com/flutter/flutter/issues/53041#issuecomment-828943000

So one thing you could do is run your app on one of our other supported platforms (e.g. desktop, or on a mobile device plugged into your computer, or on an Android or iOS emulator). That way you will get hot reload today.

But using others than browser, we cannot interact with address bar. Sending deeplink CLI command is too inconvenient. We also want to see the current URL, enter a URL directly and navigating to a URL in history.

It would be nice if flutter plugin can provide a simulated browser address bar, so developers can work more productive with both browser-like address bar and hot-reload on native platforms.

stevemessick commented 3 years ago

Let me see if I understand this request. You already have configured your app to use deep linking, as described in the docs here: https://flutter.dev/docs/development/ui/navigation/deep-linking

Is that correct?

What you are asking for is a space in the IntelliJ UI where you can type a URL and have it sent to your app, as if adb or xcrun had been used.

Is that also correct?

xuanswe commented 3 years ago

Let me see if I understand this request. You already have configured your app to use deep linking, as described in the docs here: https://flutter.dev/docs/development/ui/navigation/deep-linking

Yes.

What you are asking for is a space in the IntelliJ UI where you can type a URL and have it sent to your app, as if adb or xcrun had been used.

Partially correct. Not only adb or xcrun, we want it also for desktop and connected physical devices.

I think, IntelliJ UI should simulate these features of browser:

stevemessick commented 3 years ago

@devoncarew @DanTup @kenzieschmoll would also be interested in this request.