show method
Implementation
Future<void> show() async {
if (isDialog && !animate) {
showDialog(
barrierColor: barrierColor,
barrierDismissible: isDismissible,
context: context,
builder: (v) => Padding(
padding: paddings ?? v.mQuery.viewInsets,
child: Center(
child: this,
),
),
);
} else if (isDialog && animate) {
showGeneralDialog(
context: context,
barrierColor: barrierColor ?? const Color(0x80000000),
barrierDismissible: isDismissible,
barrierLabel: '',
pageBuilder: (context, animation, secondaryAnimation) {
return const Text('Page Builder');
},
transitionBuilder: (context, animation, secondaryAnimation, child) {
return ScaleTransition(
scale: Tween<double>(begin: 0.0, end: 1.0).animate(animation),
child: FadeTransition(
opacity: Tween<double>(begin: 0.0, end: 1.0).animate(animation),
child: Center(
child: Material(
color: Colors.transparent,
child: this,
),
),
),
);
},
);
}
}