bubble_pop_up 0.2.0 copy "bubble_pop_up: ^0.2.0" to clipboard
bubble_pop_up: ^0.2.0 copied to clipboard

A package to provide bubble pop ups for any Widget over anywhere.

This package provides the functionality to create bubble pop ups around any widget, anywhere.

Getting started #

First install the package, then simply wrap your widget with the BubblePopUp Widget, then provide the pop up widget at popUp parameter.

Usage #

The following example shows how one can use this package to show a popup over a text which shows current balance of a user in short form like, "13K", where on hovering a pop up will appear showing the full value, like "13,429".

final widgetPopUpOnHover = BubblePopUp(
  popUpColor: scheme.background,
  popUp: Container(
    decoration: BoxDecoration(
      color: scheme.background,
      borderRadius: Globals.borderRadius,
    ),
    padding: const EdgeInsets.all(10),
    child: CurrencyText.fromString(
      balance.toMarkedString(),
    ),
  ),
  child: ExcludeSemantics(
    excluding: true,
    child: CurrencyText.fromString(
      balanceShortStr,
    ),
  ),
);
copied to clipboard
3
likes
150
points
45
downloads

Publisher

verified publishervishnuworld.com

Weekly Downloads

2024.10.06 - 2025.04.20

A package to provide bubble pop ups for any Widget over anywhere.

Repository (GitHub)

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

advanced_polygons, flutter, helpful_components, num_pair

More

Packages that depend on bubble_pop_up