buildChildList method

List<Widget> buildChildList()

Implementation

List<Widget> buildChildList() {
  List<Widget> childList = [
    Positioned(
      child: child,
      left: 0,
      top: 0,
      right: 0,
      bottom: 0,
    ),
    Padding(
      padding: markMargin,
      child: TextButton(
        child: SizedBox(
          width: width,
          height: height,
        ),
        onPressed: onPressed,
        style: ButtonStyle(
          shape: MaterialStateProperty.all(RoundedRectangleBorder(borderRadius: borderRadius ?? BorderRadius.zero)),
          padding: MaterialStateProperty.all(EdgeInsets.zero),
        ),
      ),
    )
  ];
  if (position != null) {
    childList.add(position!);
  }
  return childList;
}