showTReanmeDialog function
void
showTReanmeDialog(
- BuildContext context, {
- required String text,
- required void onSubmit(
- String text
- Color? color,
- Widget? title,
- String cancelText = 'Cancel',
- String submitText = 'Submit',
- void onCancel()?,
- bool barrierDismissible = true,
- Widget? labelText,
- void onChanged(
- String text
- TextInputType? textInputType,
- List<
TextInputFormatter> ? inputFormatters, - String? onCheckIsError(
- String text
- bool autofocus = false,
- String? hintText,
Implementation
void showTReanmeDialog(
BuildContext context, {
required String text,
required void Function(String text) onSubmit,
Color? color,
Widget? title,
String cancelText = 'Cancel',
String submitText = 'Submit',
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,
),
);
}