expand_hit_test 2.0.0 copy "expand_hit_test: ^2.0.0" to clipboard
expand_hit_test: ^2.0.0 copied to clipboard

A package for expand hit test area.

A flutter package for expand hit test area. Several default widgets are provided and can be easily customized

Usage #

Default widget by extends InkWell

    ExpandInkWell(
        expandArea:const EdgeInsets.all(30),
        onTap: () {
            debugPrint("expand inkwell tap");
        },
        child: Container(color: Colors.red, height: 100, width: 100))

Default widget by extends GestureDetector

    ExpandGestureDetector(
        expandArea:const EdgeInsets.all(30),
        onTap: () {
            debugPrint("expand GestureDetector tap");
        },
        child: Container(color: Colors.red, height: 100, width: 100))

Custom

    ExpandHitTestWidget(
        expandArea:const EdgeInsets.all(30),
        child: CupertinoButton(padding: EdgeInsets.zero,child: Container(color: Colors.red, height: 100, width: 100), 
        onPressed: () {
            debugPrint("expand CupertinoButton tap");
        }))

Need to go beyond the parent

    ExpandHitTestScope(child: xxxxx)
5
likes
130
points
972
downloads

Publisher

unverified uploader

Weekly Downloads

A package for expand hit test area.

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on expand_hit_test