Closed nidhi1612 closed 4 years ago
You could add a GestureRecognizer to the outside area, and call close
on your BottomBarController
, for example:
DefaultBottomBarController(
child: Scaffold(
body: GestureDetector(
onTap: DefaultBottomBarController.of(context).close,
...
),
bottomNavigationBar: BottomExpandableAppBar(
...
),
),
);
Closing. Good answer provided
Hello,
I am new to flutter. I have used expanded bottom app bar, i want to close the expanded body when user taps in the outside area. However i dont know how it can be done.
What exactly should be detected in order to close the pulled up expanded bottom bar?