I'm making a dialog, which has a text field to get input from user, by using CupertinoAlertDialog
. However, it keeps saying No Mater Widget Found. I searched and tried with some solution from the Internet but it didn't work.
Here is my code
showCupertinoDialog(
context: context,
builder: (context) {
return CupertinoAlertDialog(
content: Scaffold(
body: TextField(
controller: cubit.textEditingController,
),
),
);
}
);
I have tried to replace Material
with Card
, Scaffold
and Container
but it didn't work as well.
Please help me