showDialog method
Implementation
@override
Future showDialog({
WidgetBuilder? builder,
bool barrierDismissible = true,
}) {
return navigator.push(DialogRoute(
pageBuilder: (buildContext, animation, secondaryAnimation) {
final pageChild = Builder(builder: builder!);
return SafeArea(
child: Builder(builder: (context) {
return pageChild;
}),
);
},
barrierDismissible: barrierDismissible,
//MaterialLocalizations.of(context).modalBarrierDismissLabel,
barrierLabel: "barier-label",
barrierColor: Colors.black54,
transitionDuration: const Duration(milliseconds: 150),
transitionBuilder: _buildMaterialDialogTransitions,
));
}