Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

ExtraTapRegion

A widget to add an extra tap region around the child widget.

a button with an extra tap region

Example

@override
Widget build(BuildContext context) {
  return DeferredPointerHandler(
    child: Scaffold(
      body: Center(
        child: ExtraTapRegion(
          margin: 16.0,
          onPressed: _onPressed,
          child: ElevatedButton(
            onPressed: _onPressed,
            child: const Text('Hello'),
          ),
        ),
      ),
    ),
  );
}

void _onPressed() {}

 


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.