wx_anchor 1.0.1 copy "wx_anchor: ^1.0.1" to clipboard
wx_anchor: ^1.0.1 copied to clipboard

Clickable zone within a widget that activates an interactive overlay upon touch or hover.

Pub Version GitHub GitHub GitHub

Clickable zone within a widget that activates an interactive overlay upon touch or hover.

Preview

Demo

Usage #

To read more about classes and other references used by wx_anchor, see the API Reference.

// Rectangle shape
WxAnchor(
  onTap: () {},
  padding: const EdgeInsets.symmetric(
    horizontal: 10,
    vertical: 6,
  ),
  borderRadius: BorderRadius.circular(5),
  child: const Text('Click Here'),
)

// Circle shape
WxAnchor.circle(
  onTap: () {},
  radius: 20,
  child: const Icon(Icons.chat),
)

// Circle shape with complex interaction
WxAnchor(
  onTap: () {},
  style: const WxDrivenAnchorStyle.circle(
    radius: 0,
    hoveredStyle: WxAnchorStyle(radius: 25),
    pressedStyle: WxAnchorStyle(radius: 20),
  ),
  child: const Icon(Icons.power_off),
)

Sponsoring #

Buy Me A Coffee Ko-Fi

If this package or any other package I created is helping you, please consider to sponsor me so that I can take time to read the issues, fix bugs, merge pull requests and add features to these packages.

4
likes
0
pub points
30%
popularity

Publisher

verified publisherwidgetarian.com

Clickable zone within a widget that activates an interactive overlay upon touch or hover.

Repository (GitHub)
View/report issues

Topics

#ui #anchor #widgetarian

Funding

Consider supporting this project:

buymeacoffee.com
ko-fi.com

License

unknown (license)

Dependencies

flutter, widget_event, wx_utils

More

Packages that depend on wx_anchor