Skip to content
pubscout

tap_builder

0.5.0, released 3 years ago by aloisdeniel.com

A simple widget for building interactive areas with customizable visual effects.

WASM-ready
$ flutter pub add tap_builder
Source repository

What it does

TapBuilder provides an alternative to Material's Inkwell widget, allowing developers to build custom interactive areas. It gives access to different states like hover, pressed, inactive, and disabled to customize visual feedback.

AI-written summary of version 0.5.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need custom interactive areas with tailored visual feedback for different states.
  • You want an alternative to Inkwell with more flexible state-based styling.

Skip it when

  • You only need standard Material Inkwell behaviors and standard ripples.

Strengths

  • Provides fine-grained control over tap states including hover, pressed, inactive, and disabled.
  • Supports focus state tracking.
  • Simple declarative API.

Weaknesses

  • Limited built-in effects compared to standard Material widgets, requiring more manual styling code.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
Widget build(BuildContext context) {
    return TapBuilder(
        onTap: () {},
        builder: (context, state, isFocused) => Container(
            child: Text('Button'),
        ),
    );
}

Alternatives

Packages that do the same job and could replace tap_builder.

  • diagram_editor

    Flutter library for building interactive diagram editors with pan, zoom, and link support

  • popover

    Displays a transient iOS-style popover view above other content pointing at a control.

  • feedback

    Widget to collect annotated screenshots and text feedback from users

  • flutter_earth_globe

    An interactive and fully customizable 3D Globe widget written in pure Dart.