show static method
PinInputController
show({
- required BuildContext context,
- PinInputController? controller,
- ValueChanged<
String> ? onInputComplete, - dynamic onComplete()?,
- VoidCallback? onSkip,
- bool showSkipButton = false,
- String title = '간편 비밀번호를 입력해 주세요',
- String description = "계정 정보를 안전하게 지키고,\n다음부터는 간편하게 로그인할 수 있어요.",
- String? errorText,
- String shuffleText = '재배열',
- PinInputTheme? theme,
- PinDotStyle? dotStyle,
- TextStyle? titleStyle,
- TextStyle? descriptionStyle,
- TextStyle? errorTextStyle,
- TextStyle? numberTextStyle,
- TextStyle? buttonTextStyle,
- TextStyle? skipTextStyle,
Implementation
static PinInputController show({
required BuildContext context,
PinInputController? controller,
ValueChanged<String>? onInputComplete,
Function(String)? onComplete,
VoidCallback? onSkip,
bool showSkipButton = false,
String title = '간편 비밀번호를 입력해 주세요',
String description = "계정 정보를 안전하게 지키고,\n다음부터는 간편하게 로그인할 수 있어요.",
String? errorText,
String shuffleText = '재배열',
PinInputTheme? theme,
PinDotStyle? dotStyle,
TextStyle? titleStyle,
TextStyle? descriptionStyle,
TextStyle? errorTextStyle,
TextStyle? numberTextStyle,
TextStyle? buttonTextStyle,
TextStyle? skipTextStyle,
}) {
final c = controller ?? PinInputController();
showModalBottomSheet(
context: context,
isScrollControlled: true,
backgroundColor: Colors.transparent,
builder: (context) => SimpleVerificationBottomSheet(
controller: c,
onInputComplete: onInputComplete,
onComplete: onComplete,
onSkip: onSkip,
showSkipButton: showSkipButton,
title: title,
description: description,
errorText: errorText,
shuffleText: shuffleText,
theme: theme,
dotStyle: dotStyle,
titleStyle: titleStyle,
descriptionStyle: descriptionStyle,
errorTextStyle: errorTextStyle,
numberTextStyle: numberTextStyle,
buttonTextStyle: buttonTextStyle,
skipTextStyle: skipTextStyle,
),
);
return c;
}