spaceBar method

Widget spaceBar()

Implementation

Widget spaceBar() {
  return ClipRRect(
    borderRadius: widget.borderRadius ?? BorderRadius.circular(0),
    child: Container(
      height: widget.height ?? height,
      width: (widget.width ?? width)! + 160,
      child: Material(
        type: MaterialType.button,
        color: widget.color,
        child: InkWell(
          highlightColor: widget.highlightColor,
          splashColor: widget.splashColor,
          onTap: () {
            HapticFeedback.heavyImpact();
            widget.controller?.text += ' ';
            widget.controller?.selection = TextSelection.fromPosition(
                TextPosition(offset: widget.controller!.text.length));
          },
          child: Center(
            child: Text(
              '_________',
              style: TextStyle(
                fontSize: widget.letterStyle.fontSize,
                color: widget.letterStyle.color,
              ),
            ),
          ),
        ),
      ),
    ),
  );
}