show static method

PinInputController show({
  1. required BuildContext context,
  2. PinInputController? controller,
  3. ValueChanged<String>? onInputComplete,
  4. dynamic onComplete(
    1. String
    )?,
  5. VoidCallback? onSkip,
  6. bool showSkipButton = false,
  7. String title = '간편 비밀번호를 입력해 주세요',
  8. String description = "계정 정보를 안전하게 지키고,\n다음부터는 간편하게 로그인할 수 있어요.",
  9. String? errorText,
  10. String shuffleText = '재배열',
  11. PinInputTheme? theme,
  12. PinDotStyle? dotStyle,
  13. TextStyle? titleStyle,
  14. TextStyle? descriptionStyle,
  15. TextStyle? errorTextStyle,
  16. TextStyle? numberTextStyle,
  17. TextStyle? buttonTextStyle,
  18. 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;
}