show static method

dynamic show(
  1. BuildContext context,
  2. List<Say> sayList, {
  3. VoidCallback? onFinish,
  4. VoidCallback? onClose,
  5. ValueChanged<int>? onChangeTalk,
  6. Color? backgroundColor,
  7. double boxTextHeight = 100,
  8. List<LogicalKeyboardKey> logicalKeyboardKeysToNext = const [],
  9. EdgeInsetsGeometry? padding,
  10. bool dismissible = false,
  11. Alignment talkAlignment = Alignment.bottomCenter,
  12. TextStyle? style,
  13. int speed = 50,
})

Implementation

static show(
  BuildContext context,
  List<Say> sayList, {
  VoidCallback? onFinish,
  VoidCallback? onClose,
  ValueChanged<int>? onChangeTalk,
  Color? backgroundColor,
  double boxTextHeight = 100,
  List<LogicalKeyboardKey> logicalKeyboardKeysToNext = const [],
  EdgeInsetsGeometry? padding,
  bool dismissible = false,
  Alignment talkAlignment = Alignment.bottomCenter,
  TextStyle? style,
  int speed = 50,
}) {
  showDialog(
    barrierDismissible: dismissible,
    barrierColor: backgroundColor,
    context: context,
    builder: (BuildContext context) {
      return TalkDialog(
        says: sayList,
        onFinish: onFinish,
        onClose: onClose,
        onChangeTalk: onChangeTalk,
        textBoxMinHeight: boxTextHeight,
        keyboardKeysToNext: logicalKeyboardKeysToNext,
        padding: padding,
        dismissible: dismissible,
        talkAlignment: talkAlignment,
        style: style,
        speed: speed,
      );
    },
  );
}