RTTestBox.tap constructor

RTTestBox.tap({
  1. VoidCallback? onTap,
  2. double? width,
  3. double? height,
  4. Color? color,
  5. Widget? child,
})

테스트용 Tap 영역을 추가하는 위젯

Implementation

factory RTTestBox.tap({
  VoidCallback? onTap,
  double? width,
  double? height,
  Color? color,
  Widget? child,
}) =>
    RTTestBox(
      child: GestureDetector(
        onTap: onTap,
        child: Container(
          width: width ?? 100,
          height: height ?? 100,
          color: color ?? Colors.red,
          child: child ??
              const Text(
                'TEST TAP BOX',
                style: TextStyle(
                  color: Colors.white,
                  fontSize: 16,
                  fontWeight: FontWeight.bold,
                ),
              ),
        ),
      ),
    );