show static method
void
show(
- BuildContext context, {
- int maxLength = 200,
- String? hintText,
- String? leftTag,
- String title = "",
- String? rightTag,
- BottomWritePickerClickCallback? onCancel,
- BottomWritePickerConfirmClickCallback? onConfirm,
- bool confirmDismiss = false,
- bool cancelDismiss = true,
- Color? rightTextColor,
- Color? cursorColor,
- String? defaultText,
- TextEditingController? textEditingController,
Implementation
static void show(BuildContext context,
{int maxLength = 200,
String? hintText,
String? leftTag,
String title = "",
String? rightTag,
BottomWritePickerClickCallback? onCancel,
BottomWritePickerConfirmClickCallback? onConfirm,
bool confirmDismiss = false,
bool cancelDismiss = true,
Color? rightTextColor,
Color? cursorColor,
String? defaultText,
TextEditingController? textEditingController}) {
final ThemeData theme = Theme.of(context);
showGeneralDialog(
context: context,
pageBuilder: (BuildContext buildContext, Animation<double> animation,
Animation<double> secondaryAnimation) {
final Widget pageChild = BottomWritePicker(
maxLength: maxLength,
hintText:
hintText ?? BrnIntl.of(context).localizedResource.pleaseEnter,
leftTag: leftTag ?? BrnIntl.of(context).localizedResource.cancel,
title: title,
rightTag: rightTag ?? BrnIntl.of(context).localizedResource.ok,
onConfirm: onConfirm,
onCancel: onCancel,
rightTextColor: rightTextColor ??
BaseThemeConfig.instance.getConfig().commonConfig.brandPrimary,
cursorColor: cursorColor ??
BaseThemeConfig.instance.getConfig().commonConfig.brandPrimary,
defaultText: defaultText,
textEditingController: textEditingController,
);
return Theme(data: theme, child: pageChild);
});
}