Closed Abdurahmon9679 closed 10 months ago
Hi,
you can show a modal bottom sheet without the navbar by setting useRootNavigator: true
. Settings that to false will show the modal bottom sheet with the navbar.
Here is an example:
showModalBottomSheet(
context: context,
backgroundColor: Colors.white,
useRootNavigator: true,
builder: (context) => Center(
child: ElevatedButton(
onPressed: () {
Navigator.pop(context);
},
child: const Text(
"Exit",
style: TextStyle(color: Colors.white),
),
),
),
);
so in my screens has buttons for showing bottom modal sheet I need showing this modal sheets with out bottom navigation bars how to make this can you help me for this