I'm using Scaffold widget but while opening a bottom dialog sheet I'm getting this exception
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Calendar"),
),
body: SafeArea(
.......
.......
child: GestureDetector(
onTap: (){
//getting exception here
showBottomSheet(
context: context,
builder: (context) => Container(
color: Colors.red,
));
},
I'm stuck on this code, it'll be very helpful if someone can give any suggestion. Thank you.