Guys, is there a way to enable/disable the OS back...
# compose
v
Guys, is there a way to enable/disable the OS back button but not to override the default behaviour? The only thing that is available right now is this
Copy code
BackHandler(!state.isLoading) {}
If I do like this, the back button doesn't work even if the
isLoading
variable is
false
.
f
What you probably want is
if (state.isLoading) BackHandler {}
.
v
Right. After I wrote the message I came up with the exact same solution. Thanks)