How to add google_mlkit_text_recognition package in FlutterFlow without modifying pubspec.yaml?

Database & APIs

I am trying to integrate the google_mlkit_text_recognition package into my FlutterFlow project to extract text from images using ML Kit. However, FlutterFlow does not allow direct modification of the pubspec.yaml file, which is required to add the dependency.

I attempted to add the package using the Pubspec Dependencies section in the Custom Action settings, but it does not seem to work. The package is not recognized when I try to import it in my custom action file.

  • Is there a way to properly add this package in FlutterFlow without modifying pubspec.yaml manually?

  • If FlutterFlow does not support this package natively, is there an alternative way to perform text recognition within FlutterFlow?

What have you tried so far?
  • Added google_mlkit_text_recognition: "^0.14.0" in the Pubspec Dependencies section of Custom Actions.

  • Created a Custom Action to process images using ML Kit but encountered errors indicating that the package is not found.

  • Checked FlutterFlow documentation but couldn't find a solution.

Did you check FlutterFlow's Documentation for this topic?
No
2
2 replies