Skip to content

mj-hd/extra_tap_region

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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() {}

About

Add an extra tap region to button widgets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published