最佳答案
尝试使用带有过滤器属性的backgroundfilter。希望您能得到解决方案!
Get.dialog(
BackdropFilter(
filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
child: AlertDialog(
contentPadding: EdgeInsets.zero,
backgroundColor: Colors.transparent,
elevation: 10.0,
content: Container(
height: height,
width: 100.0.w,
decoration: BoxDecoration(
color: Theme.of(context).scaffoldBackgroundColor,
borderRadius: BorderRadius.circular(16),
),
child: Text('Downloading')
),
),
);
);
关于flutter - 如何在对话框打开时模糊背景?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75107726/