title: Dismiss keyboard on swipe back gesture in Flutter app
body: <p>I am trying to dismiss the keyboard when the user swipes from the edge to pop route.</p>
  
  <p>Currently the keyboard doesn't dismiss until the route is completely gone popped, messing up some of the other pages layout until it dismisses</p>
  
  <p>I did try to use a <code>WillPopScope</code> to determine when the user was going to pop the route, but unfortunately this disables the swipe to pop functionality from iOS or the <code>CupertinoPageRoute</code>.</p>
  
  <p>I just want to find out if there's anyway I can determine when the user swipes from the edge to pop or taps the back button on the appBar and dismiss the keyboard as they do so.</p>
  
  <p>If possible, I am trying to dismiss keyboard as soon as they start swiping to pop, as it happens in many apps.</p>
  
  <p>I am attaching attaching a gif showing the effect I'm trying to achieve.</p>
  
  <p><a href="https://i.stack.imgur.com/0DN4G.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/0DN4G.gif" alt="Swipe to pop hides keyboard"></a></p>