Flutnet app example that use the usb Device.Net library
- All the UI realized in Flutter using the library flutter_thermometer
- The flutter code get the temperature value using a Xamarin class called ThermometerService
- The Xamarin backend use USB Device.Net library
- With Xamarin installed, clone project and open the solution file FlutnetThermometer.sln
- Build the FlutnetThermometer.ServiceLibrary project: this will update the flutnet_thermometer_bridge package project.
- With Flutter 1.20.4 installed, go to
Flutter/flutnet_thermometerproject and runflutter build aar --no-profile(for Flutter Android)
- Before running FlutnetThermometer.Android project ensure to manually uninstall the previus deployed application
com.example.appfrom your device (see Flutnet Known Issues page). This procedure must be done every time you make changes to the Flutter module and you want these changes to be reflected inside the Xamarin Android applicationadb uninstall --user 0 com.example.app
- Run the Xamarin project from Visual Studio
