这两个有什么区别?showDialog && showCupertinoDialog
这俩有啥区别 为啥showDialog不会出现BUG showCupertinoDialog会出现BUG
看起来应该是编译方式不同。。
谁能详细讲讲?
showDialog<Null>(
context: context,
barrierDismissible: false,
builder: (context) =>
CupertinoAlertDialog(
title: Text(title),
actions: [
CupertinoDialogAction(
onPressed: () {
Navigator.pop(context);
},
child: const Text(DialogStrings.ok),
),
],
),
);
showCupertinoDialog(
context: context,
builder: (context) =>
CupertinoAlertDialog(
title: Text(title),
actions: [
CupertinoDialogAction(
onPressed: () {
Navigator.pop(context);
},
child: const Text(DialogStrings.ok),
),
],
),
);