CustomDialog.show constructor
CustomDialog.show(
- BuildContext context, {
- required Widget view,
- required Color backgroundColor,
- required bool disableTintColor,
Implementation
CustomDialog.show(this.context,
{
required this.view,
required this.backgroundColor,
required this.disableTintColor,
}) {
// Decide dialog layout based on platform
if (Platform.isIOS) {
_cupertinoView();
} else if (Platform.isAndroid) {
_materialView();
} else {
_materialView();
}
}