Commit d2e86fc0 authored by Dio Maulana's avatar Dio Maulana

pop if can pop

parent 7790ebb9
......@@ -29,7 +29,10 @@ class CustomAppBar extends StatelessWidget {
(canGoback)
? GestureDetector(
onTap: () {
bool canPop = Navigator.canPop(context);
if (canPop) {
Navigator.pop(context);
}
},
child: Container(
margin: EdgeInsets.only(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment