This issue occurs because the library is not updated for 3 years. To fix this you can try out this mentioned link https://github.com/shaqian/flutter_tflite/pull/305. If not solved than have a look in the Git hub repo and PR section it will be really helpful because of the contributors.