InfoDialog.show constructor

InfoDialog.show(
  1. BuildContext context, {
  2. String? title,
  3. required Widget content,
  4. required String buttonTitle,
  5. Color? buttonColor,
  6. required Color backgroundColor,
  7. required bool disableTintColor,
})

Implementation

InfoDialog.show(
    this.context,
    {
      this.title,
      required this.content,
      required this.buttonTitle,

      this.buttonColor,
      required this.backgroundColor,
      required this.disableTintColor,

    }){

  // Decide dialog layout based on platform
  if (Platform.isIOS) {
    _cupertinoView();
  } else if (Platform.isAndroid) {
    _materialView();
  } else {
    _materialView();
  }
}