showTReanmeDialog function

void showTReanmeDialog(
  1. BuildContext context, {
  2. required String text,
  3. required void onSubmit(
    1. String text
    ),
  4. Color? color,
  5. Widget? title,
  6. String? cancelText,
  7. String? submitText,
  8. void onCancel()?,
  9. bool barrierDismissible = true,
  10. Widget? labelText,
  11. void onChanged(
    1. String text
    )?,
  12. TextInputType? textInputType,
  13. List<TextInputFormatter>? inputFormatters,
  14. String? onCheckIsError(
    1. String text
    )?,
  15. bool autofocus = false,
  16. String? hintText,
})

Implementation

void showTReanmeDialog(
  BuildContext context, {
  required String text,
  required void Function(String text) onSubmit,
  Color? color,
  Widget? title,
  String? cancelText,
  String? submitText,
  void Function()? onCancel,
  bool barrierDismissible = true,
  Widget? labelText,
  void Function(String text)? onChanged,
  TextInputType? textInputType,
  List<TextInputFormatter>? inputFormatters,
  String? Function(String text)? onCheckIsError,
  bool autofocus = false,
  String? hintText,
}) {
  showCupertinoDialog(
    context: context,
    barrierDismissible: barrierDismissible,
    builder: (context) => TRenameDialog(
      autofocus: autofocus,
      inputFormatters: inputFormatters,
      onCheckIsError: onCheckIsError,
      onChanged: onChanged,
      renameLabelText: labelText,
      textInputType: textInputType,
      title: title,
      text: text,
      onSubmit: onSubmit,
      onCancel: onCancel,
      cancelText: cancelText,
      submitText: submitText,
      hintText: hintText,
    ),
  );
}