Flutter-Node
A NodeJS package to interact with the FLutter SDK
Working now:
- Get an array of the connected devices
- Run an app from the source
- Hot reload the app
Installation
Using npm:
npm install flutter-node
Usage:
const Flutter =
isInstalled()
Detect if Flutter is intalled on the client:
Flutter
getDevices()
If there are no devices connected it will return an error.
If there are devices connected it will return an array with arrays which refers to each device.
Flutter
app()
You must pass the app source code directory, and the device id (which you can get with the getDevices() method.)
const myApp = path:'/somewhere' deviceId:mydeviceid myApp myApp myApp
Example:
const Flutter = ; Flutter Flutter