One Flutter client for network-computer: drive a remote Linux/Mac desktop from Android, iPhone, iPad, or desktop over WebRTC.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/network-computer-flutter.git
HTTPS
https://gitstable.com/git/askrobots/network-computer-flutter.git
SSH
ssh://git@gitstable.com:2222/askrobots/network-computer-flutter.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

Dan Quellhorst No colour (compare) in ⋯: the desk's picture in grey on this device c74471a 1 month, 3 weeks ago History
README.md · 2.4 KB · 65 lines

network-computer (Flutter client)

One client for network-computer, across Android, iPhone, iPad, and macOS / Windows / Linux desktop from a single Dart codebase. See and drive a remote Linux or Mac desktop over WebRTC, with the phone or tablet as trackpad and keyboard.

Status: first cut. Connects through nc-rendezvous with the same signaling and Basic-auth + host-PIN as the browser and (former) native clients, renders video in hardware via flutter_webrtc, sends touch, keyboard and modifier-bar input, and shows live stats. This supersedes the native Swift iOS app: one codebase for every device.

Build

Needs the Flutter SDK (3.35+). Then per target:

flutter pub get
flutter run                 # a connected device or desktop
flutter build apk           # Android (needs the Android SDK / Android Studio)
flutter build ipa           # iOS / iPad (needs Xcode + CocoaPods)
flutter build macos         # macOS desktop (needs CocoaPods)

The Android SDK, Xcode and CocoaPods are the usual Flutter platform prerequisites; flutter doctor lists what is missing.

Use

  1. Run nc-rendezvous and nc-host from the Go repo.
  2. Enter the rendezvous URL, user, password, pick the host, enter its PIN.
  3. Connect. On a touch screen:
GestureOn the desk
TapLeft click
Double tapDouble click
Touch and hold, let goRight click
Two-finger tapRight click
Touch and hold, then moveDrag
One-finger dragMove the pointer (trackpad)
Two-finger dragScroll

The keyboard button brings up the device's keyboard plus a bar with esc, tab, ctrl, alt, super, shift, arrows, home/end, page up/down, delete and fn (F1–F12). Modifiers apply to the next key; hold one to lock it. A mouse, trackpad or hardware keyboard (iPad Magic Keyboard, USB) works as usual.

Layout

lib/protocol.dart        signaling + input event models (mirror internal/proto)
lib/signaling.dart       rendezvous WebSocket + /config,/hosts, Basic auth
lib/peer.dart            flutter_webrtc peer: video/audio in, input + stats
lib/session_store.dart   connection state, auto-reconnect
lib/connect_screen.dart  connection UI (remembers settings)
lib/session_screen.dart  video, top bar, voice, stats
lib/touch_pad.dart       touch gestures → clicks, drags, scroll
lib/soft_keyboard.dart   device keyboard → desk keys, plus the key bar

License

MIT.