You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
605 B
Dart
22 lines
605 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
void showMDialog(context, {Widget? child, Color? backgroundColor, bool isDismissable = true, bool isBusniessCard = false}) async {
|
|
return showDialog(
|
|
context: context,
|
|
barrierDismissible: isDismissable,
|
|
builder: (context) {
|
|
return Dialog(
|
|
shape: isBusniessCard
|
|
? const RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.all(
|
|
Radius.circular(15.0),
|
|
),
|
|
)
|
|
: null,
|
|
backgroundColor: backgroundColor,
|
|
child: child,
|
|
);
|
|
},
|
|
);
|
|
}
|