try to change on your pubspec.yaml
usb_serial: git: url: https://github.com/jymden/usbserial.git ref: master