Closed mohanad87m closed 2 years ago
Don't check state.text.length outside the scope of if (state.isNotProcessing). You should move it to:
` Future
if (state.isNotProcessing) { state.startProcessing(); state.image = image; state.data = await _textRecognition?.process(image);
if(state.text.length>=12){
Navigator.push(
context,
MaterialPageRoute(builder: (context) => fff(state.text)),
);
state.stopProcessing();
} state.stopProcessing(); }
I want to put a condition when it finds a specific value and sends it to another page, but it does not stop sending values to the page