capsLock method

Widget capsLock()

Implementation

Widget capsLock() {
  return ClipRRect(
    borderRadius: widget.borderRadius ?? BorderRadius.circular(0),
    child: Container(
      height: widget.height ?? height,
      width: (widget.width ?? width)! + 20,
      child: Material(
        type: MaterialType.button,
        color: widget.color,
        child: InkWell(
          highlightColor: widget.highlightColor,
          splashColor: widget.splashColor,
          onTap: () {
            HapticFeedback.heavyImpact();
            setState(() {
              capsLockUppercase = !capsLockUppercase;
            });
          },
          child: Center(
            child: Icon(
              Icons.keyboard_capslock,
              size: widget.letterStyle.fontSize,
              color: widget.letterStyle.color,
            ),
          ),
        ),
      ),
    ),
  );
}