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.
15 lines
354 B
Dart
15 lines
354 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
void showMDialog(context, {Widget? child,Color? backgroundColor,bool isDismissable=true}) async {
|
|
return showDialog(
|
|
context: context,
|
|
barrierDismissible: isDismissable,
|
|
builder: (context) {
|
|
return Dialog(
|
|
backgroundColor: backgroundColor,
|
|
child: child,
|
|
);
|
|
},
|
|
);
|
|
}
|