dialog function

dynamic dialog({
  1. required String title,
  2. TextStyle? titleStyle,
  3. required String msg,
  4. TextStyle? msgStyle,
  5. required List<String> btnTitles,
  6. Color? btnHighLightColor,
  7. Color? btnDefaultColor,
  8. double? btnFontSize,
  9. required ValueChanged<int> onSelected,
  10. double? maxWidth,
})

Implementation

dialog(
    {required String title,
    TextStyle? titleStyle,
    required String msg,
    TextStyle? msgStyle,
    required List<String> btnTitles,
    Color? btnHighLightColor,
    Color? btnDefaultColor,
    double? btnFontSize,
    required ValueChanged<int> onSelected,
    double? maxWidth}) {
  dialogContent(
      title: title,
      titleStyle: titleStyle,
      content: Text(msg,
          style: msgStyle ??
              TextStyle(
                  fontSize: fontSizes.s15, color: const Color(0xFF808080))),
      btnTitles: btnTitles,
      onSelected: onSelected,
      btnHighLightColor: btnHighLightColor,
      btnDefaultColor: btnDefaultColor,
      btnFontSize: btnFontSize,
      maxWidth: maxWidth);
}