https://github.com/ztomz/custom_popup
A highly customizable popup widget, that is easy to integrate into your code.
https://github.com/ztomz/custom_popup
dart dartlang flutter flutter-package package
Last synced: 10 months ago
JSON representation
A highly customizable popup widget, that is easy to integrate into your code.
- Host: GitHub
- URL: https://github.com/ztomz/custom_popup
- Owner: zTomz
- License: mit
- Created: 2024-05-18T11:11:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-27T10:55:49.000Z (about 2 years ago)
- Last Synced: 2025-05-08T04:01:48.616Z (about 1 year ago)
- Topics: dart, dartlang, flutter, flutter-package, package
- Language: Dart
- Homepage: https://pub.dev/packages/custom_popup
- Size: 820 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Custom Popup
===

A highly customizable popup widget, that is easy to integrate into your code.
Features
---
- Custom Popup is a highly customizable popup widget, that is easy to integrate into your code.
Getting started
---
Just add the widget in your code. The example below shows how to use the widget with [Phosphor icons package](https://pub.dev/packages/phosphor_flutter).
```Dart
CustomPopupButton(
icon: PhosphorIcon(
PhosphorIcons.dotsThreeVertical(),
),
closeIcon: PhosphorIcon(
PhosphorIcons.xCircle(),
),
animationAlignment: Alignment.topLeft,
items: [
CustomPopupMenuItem(
label: 'Edit',
icon: PhosphorIcon(
PhosphorIcons.pencilLine(),
),
onTap: () {},
),
CustomPopupMenuItem(
label: 'Duplicate',
icon: PhosphorIcon(
PhosphorIcons.copy(),
),
onTap: () {},
),
...
const CustomPopupMenuDivider(),
CustomPopupMenuItem(
label: 'Delete',
icon: PhosphorIcon(
PhosphorIcons.trash(),
),
foregroundColor: Colors.red,
onTap: () {},
),
],
)
```
Showcase
---