hold_on_pop 0.0.5 copy "hold_on_pop: ^0.0.5" to clipboard
hold_on_pop: ^0.0.5 copied to clipboard

A Flutter package that provides a widget that shows a popup when the user presses their finger and closes when they release it, similar to the functionality in Instagram.

Hold on pop #

hold_on_pop is a Flutter package that provides a widget that shows a popup when the user presses their finger and closes when they release it (like Instagram).

Features #

  • Provides a customizable widget that shows a popup when the user holds their finger on it.
  • Supports customizing the look and feel of the widget, including the size, color, and shape of the popup.
  • Provides callbacks for handling when the user presses and releases their finger on the widget.

Hold on pop basic

Getting Started #

To use hold_on_pop, add hold_on_pop as a dependency in your pubspec.yaml file:

dependencies:
  hold_on_pop: ^1.0.0
copied to clipboard

Then, import the package in your Dart code:

import 'package:hold_on_pop/hold_on_pop.dart';
copied to clipboard

Usage #

hold_on_pop provides a HoldOnPop widget that you can use in your Flutter app. The widget is typically used to provide contextual help or information to the user when they long press on a specific part of the screen.

Here's an example of how to use the HoldOnPop widget:

HoldOnPop(
    child: Container(
    height: 100,
    width: 100,
    color: Colors.blue,
    ),
    popup: Container(
    height: 50,
    width: 50,
    color: Colors.red,
    ),
);
copied to clipboard

In this example, we create a HoldOnPop widget with a blue Container as the child. We also define a popup property that creates a red Container as the popup.

Additional Information #

  • For more information on how to use the HoldOnPop widget, please see the example app in the /example directory.
  • If you encounter any issues or have any suggestions for improving the package, please file an issue on the GitHub repository.

Changelog #

See CHANGELOG.md for the latest updates and changes to the package.

License #

This package is available under the MIT License. See the LICENSE file for more information.

13
likes
150
points
114
downloads

Publisher

verified publisheranjoylife.me

Weekly Downloads

2024.09.21 - 2025.04.05

A Flutter package that provides a widget that shows a popup when the user presses their finger and closes when they release it, similar to the functionality in Instagram.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on hold_on_pop