Flutter App Issue || Not able to again click the text field in Flutter App facing issue

Hello

Not able to again click the same text field on the same page in Flutter App facing the issue. For the Native App, it’s working fine.

Issue:

driver.findElement(By.xpath("//android.widget.EditText[@text=‘Enter your email id’]")).click();
driver.findElement(By.xpath("//android.widget.EditText[@text=‘Enter your email id’]")).sendKeys(test);
driver.hideKeyboard();

//getting exception from here

driver.findElement(By.xpath("//android.widget.EditText[@text=‘Enter your email id’]")).click();
driver.findElement(By.xpath("//android.widget.EditText[@text=‘Enter your email id’]")).clear();
driver.findElement(AppiumBy.accessibilityId(“Login”)).click();

Exception:

org.openqa.selenium.NoSuchElementException: An element could not be located on the page using the given search parameters.
Build info: version: ‘4.5.0’, revision: ‘fe167b119a’
Driver info: io.appium.java_client.android.AndroidDriver
Command: [9a8a07f5-fe6a-464c-8af6-258a996def6c, findElement {using=xpath, value=//android.widget.EditText[@text=‘Enter your email id’]}]
Capabilities {appium:app: /home/users/nishant.sharma/…, appium:appPackage: com.odoodeliveryboy, appium:automationName: UIAutomator2, appium:databaseEnabled: false, appium:desired: {app: /home/users/nishant.sharma/…, automationName: UIAutomator2, deviceName: AppiumTestEmulator, platformName: android}, appium:deviceApiLevel: 30, appium:deviceManufacturer: samsung, appium:deviceModel: SM-A305F, appium:deviceName: RZ8M54BJJLA, appium:deviceScreenDensity: 420, appium:deviceScreenSize: 1080x2340, appium:deviceUDID: RZ8M54BJJLA, appium:javascriptEnabled: true, appium:locationContextEnabled: false, appium:networkConnectionEnabled: true, appium:pixelRatio: 2.625, appium:platformVersion: 11, appium:statBarHeight: 83, appium:takesScreenshot: true, appium:viewportRect: {height: 2048, left: 0, top: 83, width: 1080}, appium:warnings: {}, appium:webStorageEnabled: false, platformName: ANDROID}
Session ID: 9a8a07f5-fe6a-464c-8af6-258a996def6c
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:200)
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:133)
at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:53)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:184)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:180)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:547)
at org.openqa.selenium.remote.ElementLocation$ElementFinder$2.findElement(ElementLocation.java:162)
at org.openqa.selenium.remote.ElementLocation.findElement(ElementLocation.java:60)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:365)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:357)
at Apppium.AppiumBasics.AppiumBasic(AppiumBasics.java:43)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:139)
at org.testng.internal.invokers.TestInvoker.invokeMethod(TestInvoker.java:677)
at org.testng.internal.invokers.TestInvoker.invokeTestMethod(TestInvoker.java:221)
at org.testng.internal.invokers.MethodRunner.runInSequence(MethodRunner.java:50)
at org.testng.internal.invokers.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:962)
at org.testng.internal.invokers.TestInvoker.invokeTestMethods(TestInvoker.java:194)