项目作者: vtorres

项目描述 :
Gitpod Configuration for Flutter Projects
高级语言: Dart
项目地址: git://github.com/vtorres/gitpod-flutter.git
创建时间: 2019-10-25T01:59:11Z
项目社区:https://github.com/vtorres/gitpod-flutter

开源协议:MIT License

下载


Gitpod Flutter

Open in Gitpod

made-with-flutter
License: MIT
GitHub stars

Setup

Web

  1. flutter run -d web-server --web-port=8080 --web-hostname=0.0.0.0

Mobile with remote adb

Check your mobile lan ip and feel free to use your own port configuration
  1. SMARTPHONE_LOCAL_IP = 192.168.0.10 (LAN IP)
  2. INTERNAL_PORT = 5555
[Localhost command] Run the following command to switch adb on your device to work over the network using the internal port
  1. adb tcpip INTERNAL_PORT
[Localhost command] Check adb connection from localhost
  1. adb connect SMARTPHONE_LOCAL_IP:INTERNAL_PORT
[Localhost command] Starts ngrok tcp forwarding to your mobile or if you prefer you can forward a chosen port on your router to the mobile
  • Ngrok describes itself as “expose a local server behind a NAT or firewall to the internet.”, making our lives easier.
  1. ngrok tcp SMARTPHONE_LOCAL_IP:INTERNAL_PORT
[Gitpod command] Connect from your Gitpod to your localhost for debugging
  1. adb connect NGROK_ADDRESS:NGROK_PORT
  2. flutter run -d NGROK_ADDRESS:NGROK_PORT