I have an interface with two buttons that pop and return true or false, like so:
onPressed: () => Navigator.pop(context, false)
I need t
The default BackButton takes over the leading property of your AppBar so all you need to do is to override the leading property with your custom back button, for example:
BackButton
AppBar
leading
leading: IconButton(icon:Icon(Icons.chevron_left),onPressed:() => Navigator.pop(context, false),),)