How we can detect phone flip event in the flutter?

89 Views Asked by At

I have a requirement where I have to turn on or off the visibility of an element when the user flips the phone.

  • When user flip for the first time then hide the element
  • If user do flip again then show the element.

Flip event callback should only be recognized when user flip the phone horizontally (I mean X-axis wise) not vertically(Y-axis)

0

There are 0 best solutions below