showIconText static method
Implementation
static DialogShower showIconText({Widget? icon, String? text, AlterIconTextOptions? onOptions}) {
AnyIconTextOptions options = AnyIconTextOptions();
onOptions?.call(options);
DialogShower shower = DialogWrapper.show(AnyIconTextWidget(icon: icon, text: text, options: options));
// rewrite properties cause show actually in the next micro task :)
shower
..barrierDismissible = true
..alignment = Alignment.center
..barrierColor = Colors.black.withAlpha(64)
..transitionDuration = const Duration(milliseconds: 200)
..transitionBuilder = (BuildContext context, Animation<double> animation, Animation<double> secondaryAnimation, Widget child) {
return ScaleTransition(child: child, scale: Tween(begin: 0.0, end: 1.0).animate(animation));
};
return shower;
}