showAnaLoadingDialog static method
YYDialog
showAnaLoadingDialog(
- BuildContext context,
- String message, {
- String loadingMsg = "Loading...",
Implementation
static YYDialog showAnaLoadingDialog(
BuildContext context,
String message, {
String loadingMsg = "Loading...",
}) {
var totalHeight = 392.h;
var totalWidth = 345.w;
YYDialog.init(context);
YYDialog yydialog = YYDialog();
yydialog = YYDialog().build(context)
..width = totalWidth
..height = totalHeight
..borderRadius = 20.r
..backgroundColor = Colors.transparent
..widget(Container(
// color: Colors.red,
width: totalWidth,
height: totalHeight,
decoration: const BoxDecoration(
color: Colors.white,
gradient: LinearGradient(colors: [
Color(0xFFE9EEFA),
Color(0xFFF7F8FB),
])),
child: const Center(
child: CircularProgressIndicator(
valueColor: AlwaysStoppedAnimation<Color>(Colors.blue), // 设置颜色为蓝色
// backgroundColor: Colors.grey, // 设置背景颜色为灰色
),
),
))
..show();
return yydialog;
}