buildWiredElement method

  1. @override
Widget buildWiredElement()

The method for extended widget to implement to build widgets.

Implementation

@override
Widget buildWiredElement() {
  return Container(
    padding: EdgeInsets.zero,
    height: 42.0,
    decoration: RoughBoxDecoration(
      shape: RoughBoxShape.rectangle,
      borderStyle: RoughDrawingStyle(
        width: 1,
        color: borderColor,
      ),
    ),
    child: SizedBox(
      height: double.infinity,
      child: TextButton(
        style: TextButton.styleFrom(
          primary: textColor,
        ),
        child: child,
        onPressed: onPressed,
      ),
    ),
  );
}