-
Notifications
You must be signed in to change notification settings - Fork 245
Open
Description
Describe the bug
连续show有mask的loading,会看到mask背景闪烁(mask没有过渡效果)
实际场景为:
登录的时候需要连续request多个api,每次request都会show和dismiss loading
Code
void configLoading() {
EasyLoading.instance
..displayDuration = 60.seconds
..indicatorType = EasyLoadingIndicatorType.ring
..loadingStyle = EasyLoadingStyle.custom
..maskType = EasyLoadingMaskType.custom
// ..animationStyle = EasyLoadingAnimationStyle.scale
..maskColor = Colors.blue.withOpacity(0.5)
..contentPadding = const EdgeInsets.all(20)
// ..indicatorWidget = LoadingWidget()
// ..indicatorSize = 45
..radius = 10.0
// ..progressColor = Colors.yellow
..backgroundColor = Color(0xFFD5D66A).withOpacity(0.8)
..indicatorColor = Color(0xFFD5D66A)
..textColor = Colors.white
..textStyle = const TextStyle(
color: Colors.white,
fontSize: 15,
fontWeight: FontWeight.w500,
)
// ..maskColor = Colors.blue.withOpacity(0.5)
..userInteractions = false
..dismissOnTap = false;
// ..customAnimation = CustomAnimation();
}
Future<void> showLoading() async {
EasyLoading.show(status: 'Loading...');
await Future.delayed(Duration(seconds: 1));
EasyLoading.dismiss();
}
await showLoading();
await showLoading();
await showLoading();
Screenshots
ScreenRecording_01-15-2025.16-48-14_1.MP4
Metadata
Metadata
Assignees
Labels
No labels