DialogText constructor
const
DialogText({
- required String title,
- required void onConfirm(
- String result
- String? description,
- Widget descriptionWidget = const SizedBox.shrink(),
- String confirmText = 'Done',
- String cancelText = 'Cancel',
- Widget? placeholder,
- bool obscureText = false,
- String? initialValue,
- List<
Widget> ? actions, - int maxLines = 1,
- int? minLines,
- int? maxLength,
- TextInputType keyboardType = TextInputType.text,
- Key? key,
Implementation
const DialogText({
required this.title,
required this.onConfirm,
this.description,
this.descriptionWidget = const SizedBox.shrink(),
this.confirmText = 'Done',
this.cancelText = 'Cancel',
this.placeholder,
this.obscureText = false,
this.initialValue,
this.actions,
this.maxLines = 1,
this.minLines,
this.maxLength,
this.keyboardType = TextInputType.text,
super.key,
});