CustomDialog.show constructor

CustomDialog.show(
  1. BuildContext context, {
  2. required Widget view,
  3. required Color backgroundColor,
  4. 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();
  }
}